Skip to content

Instantly share code, notes, and snippets.

@kulesa
Created June 28, 2011 09:51
Show Gist options
  • Save kulesa/1050827 to your computer and use it in GitHub Desktop.
Save kulesa/1050827 to your computer and use it in GitHub Desktop.
3.1 error
ArgumentError: wrong number of arguments (3 for 2)
from /Users/pro/.rvm/gems/ruby-1.9.2-p180/gems/mysql2-0.2.7/lib/active_record/connection_adapters/mysql2_adapter.rb:634:in `select'
from /Users/pro/.rvm/gems/ruby-1.9.2-p180/gems/activerecord-3.1.0.rc4/lib/active_record/connection_adapters/abstract/database_statements.rb:9:in `select_all'
from /Users/pro/.rvm/gems/ruby-1.9.2-p180/gems/activerecord-3.1.0.rc4/lib/active_record/connection_adapters/abstract/query_cache.rb:62:in `select_all'
from /Users/pro/.rvm/gems/ruby-1.9.2-p180/gems/activerecord-3.1.0.rc4/lib/active_record/base.rb:473:in `find_by_sql'
from /Users/pro/.rvm/gems/ruby-1.9.2-p180/gems/activerecord-3.1.0.rc4/lib/active_record/relation.rb:109:in `to_a'
from /Users/pro/.rvm/gems/ruby-1.9.2-p180/gems/activerecord-3.1.0.rc4/lib/active_record/relation/finder_methods.rb:155:in `all'
from /Users/pro/.rvm/gems/ruby-1.9.2-p180/gems/activerecord-3.1.0.rc4/lib/active_record/base.rb:444:in `all'
from (irb):1
from /Users/pro/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.0.rc4/lib/rails/commands/console.rb:45:in `start'
from /Users/pro/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.0.rc4/lib/rails/commands/console.rb:8:in `start'
from /Users/pro/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.0.rc4/lib/rails/commands.rb:40:in `<top (required)>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment