Skip to content

Instantly share code, notes, and snippets.

@alecslupu
Created November 12, 2011 09:09
Show Gist options
  • Save alecslupu/1360276 to your computer and use it in GitHub Desktop.
Save alecslupu/1360276 to your computer and use it in GitHub Desktop.
wrong number of arguments (2 for 1)
activerecord (3.1.1) lib/active_record/relation.rb:111:in `find_by_sql'
activerecord (3.1.1) lib/active_record/relation.rb:111:in `origin_to_a'
/Users/alecs/.rvm/gems/ruby-1.8.7-p352@myproject/bundler/gems/bullet-a7ddd69203a1/lib/bullet/active_record31.rb:11:in `to_a'
activerecord (3.1.1) lib/active_record/relation/finder_methods.rb:376:in `find_first'
activerecord (3.1.1) lib/active_record/relation/finder_methods.rb:122:in `first'
activerecord (3.1.1) lib/active_record/relation/finder_methods.rb:263:in `send'
activerecord (3.1.1) lib/active_record/relation/finder_methods.rb:263:in `find_by_attributes'
activerecord (3.1.1) lib/active_record/base.rb:1063:in `send'
activerecord (3.1.1) lib/active_record/base.rb:1063:in `method_missing'
actionpack (3.1.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.1.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.1.1) lib/abstract_controller/base.rb:167:in `process_action'
actionpack (3.1.1) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (3.1.1) lib/abstract_controller/callbacks.rb:18:in `process_action'
activesupport (3.1.1) lib/active_support/callbacks.rb:425:in `_run__1074442148__process_action__2120514126__callbacks'
activesupport (3.1.1) lib/active_support/callbacks.rb:386:in `send'
activesupport (3.1.1) lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks'
activesupport (3.1.1) lib/active_support/callbacks.rb:81:in `send'
activesupport (3.1.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.1.1) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.1.1) lib/action_controller/metal/rescue.rb:17:in `process_action'
actionpack (3.1.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
activesupport (3.1.1) lib/active_support/notifications.rb:53:in `instrument'
activesupport (3.1.1) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (3.1.1) lib/active_support/notifications.rb:53:in `instrument'
actionpack (3.1.1) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.1.1) lib/action_controller/metal/params_wrapper.rb:201:in `process_action'
activerecord (3.1.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (3.1.1) lib/abstract_controller/base.rb:121:in `process'
actionpack (3.1.1) lib/abstract_controller/rendering.rb:45:in `process'
actionpack (3.1.1) lib/action_controller/metal.rb:193:in `dispatch'
actionpack (3.1.1) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.1.1) lib/action_controller/metal.rb:236:in `action'
actionpack (3.1.1) lib/action_dispatch/routing/route_set.rb:65:in `call'
actionpack (3.1.1) lib/action_dispatch/routing/route_set.rb:65:in `dispatch'
actionpack (3.1.1) lib/action_dispatch/routing/route_set.rb:29:in `call'
actionpack (3.1.1) lib/action_dispatch/routing/mapper.rb:41:in `call'
rack-mount (0.8.3) lib/rack/mount/route_set.rb:152:in `call'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:96:in `recognize'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:75:in `optimized_each'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:95:in `recognize'
rack-mount (0.8.3) lib/rack/mount/route_set.rb:141:in `call'
actionpack (3.1.1) lib/action_dispatch/routing/route_set.rb:532:in `call'
/Users/alecs/.rvm/gems/ruby-1.8.7-p352@myproject/bundler/gems/omniauth-d1e5b8a66c41/oa-core/lib/omniauth/strategy.rb:44:in `call!'
/Users/alecs/.rvm/gems/ruby-1.8.7-p352@myproject/bundler/gems/omniauth-d1e5b8a66c41/oa-core/lib/omniauth/strategy.rb:30:in `call'
/Users/alecs/.rvm/gems/ruby-1.8.7-p352@myproject/bundler/gems/omniauth-d1e5b8a66c41/oa-core/lib/omniauth/strategy.rb:172:in `call_app!'
/Users/alecs/.rvm/gems/ruby-1.8.7-p352@myproject/bundler/gems/omniauth-d1e5b8a66c41/oa-core/lib/omniauth/strategy.rb:136:in `callback_phase'
/Users/alecs/.rvm/gems/ruby-1.8.7-p352@myproject/bundler/gems/omniauth-d1e5b8a66c41/oa-oauth/lib/omniauth/strategies/oauth2.rb:69:in `callback_phase'
/Users/alecs/.rvm/gems/ruby-1.8.7-p352@myproject/bundler/gems/omniauth-d1e5b8a66c41/oa-core/lib/omniauth/strategy.rb:68:in `callback_call'
/Users/alecs/.rvm/gems/ruby-1.8.7-p352@myproject/bundler/gems/omniauth-d1e5b8a66c41/oa-core/lib/omniauth/strategy.rb:42:in `call!'
/Users/alecs/.rvm/gems/ruby-1.8.7-p352@myproject/bundler/gems/omniauth-d1e5b8a66c41/oa-core/lib/omniauth/strategy.rb:30:in `call'
/Users/alecs/.rvm/gems/ruby-1.8.7-p352@myproject/bundler/gems/bullet-a7ddd69203a1/lib/bullet/rack.rb:11:in `call'
warden (1.0.6) lib/warden/manager.rb:35:in `call'
warden (1.0.6) lib/warden/manager.rb:34:in `catch'
warden (1.0.6) lib/warden/manager.rb:34:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.3.5) lib/rack/etag.rb:23:in `call'
rack (1.3.5) lib/rack/conditionalget.rb:25:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/head.rb:14:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/flash.rb:243:in `call'
rack (1.3.5) lib/rack/session/abstract/id.rb:195:in `context'
rack (1.3.5) lib/rack/session/abstract/id.rb:190:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/cookies.rb:331:in `call'
activerecord (3.1.1) lib/active_record/query_cache.rb:62:in `call'
activerecord (3.1.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/callbacks.rb:29:in `call'
activesupport (3.1.1) lib/active_support/callbacks.rb:392:in `_run_call_callbacks'
activesupport (3.1.1) lib/active_support/callbacks.rb:81:in `send'
activesupport (3.1.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.1.1) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/reloader.rb:68:in `call'
rack (1.3.5) lib/rack/sendfile.rb:101:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
railties (3.1.1) lib/rails/rack/logger.rb:13:in `call'
rack (1.3.5) lib/rack/methodoverride.rb:24:in `call'
rack (1.3.5) lib/rack/runtime.rb:17:in `call'
activesupport (3.1.1) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.3.5) lib/rack/lock.rb:15:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/static.rb:53:in `call'
railties (3.1.1) lib/rails/engine.rb:456:in `call'
railties (3.1.1) lib/rails/rack/content_length.rb:16:in `call'
railties (3.1.1) lib/rails/rack/log_tailer.rb:14:in `call'
rack (1.3.5) lib/rack/handler/webrick.rb:59:in `service'
/Users/alecs/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/Users/alecs/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/Users/alecs/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/Users/alecs/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/webrick/server.rb:162:in `start'
/Users/alecs/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/Users/alecs/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/webrick/server.rb:95:in `start'
/Users/alecs/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/webrick/server.rb:92:in `each'
/Users/alecs/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/webrick/server.rb:92:in `start'
/Users/alecs/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/webrick/server.rb:23:in `start'
/Users/alecs/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/webrick/server.rb:82:in `start'
rack (1.3.5) lib/rack/handler/webrick.rb:13:in `run'
rack (1.3.5) lib/rack/server.rb:265:in `start'
railties (3.1.1) lib/rails/commands/server.rb:70:in `start'
railties (3.1.1) lib/rails/commands.rb:54
railties (3.1.1) lib/rails/commands.rb:49:in `tap'
railties (3.1.1) lib/rails/commands.rb:49
script/rails:6:in `require'
script/rails:6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment