Rails 3.0.0 - ArgumentError (wrong number of arguments (3 for 1))

Hey,

I’m trying to upgrade an app and no matter what controller#action I
call I am met with the error below and I am having trouble figuring
out what’s causing it.

Things to note:

  • There isn’t any code in the SessionsController#new action.
  • If I remove everything from the view (and the layout isn’t
    rendered), the error still occurs.
  • On other actions, code contained within the action itself runs
    successfully, but, the error still occurs.

I can needz halp?

Thanks in advance!


Started GET “/login” for 127.0.0.1 at Tue Sep 07 10:44:41 -0400 2010
Processing by SessionsController#new as HTML
Completed in 3ms

ArgumentError (wrong number of arguments (3 for 1)):
actionpack (3.0.0) lib/action_view/template.rb:121:in try' actionpack (3.0.0) lib/action_view/template.rb:121:ininitialize’
actionpack (3.0.0) lib/action_view/template/resolver.rb:80:in new' actionpack (3.0.0) lib/action_view/template/resolver.rb:80:inquery’
actionpack (3.0.0) lib/action_view/template/resolver.rb:75:in map' actionpack (3.0.0) lib/action_view/template/resolver.rb:75:inquery’
actionpack (3.0.0) lib/action_view/template/resolver.rb:55:in
find_templates' actionpack (3.0.0) lib/action_view/template/resolver.rb:20:infind_all’
actionpack (3.0.0) lib/action_view/template/resolver.rb:38:in
cached' actionpack (3.0.0) lib/action_view/template/resolver.rb:19:infind_all’
actionpack (3.0.0) lib/action_view/paths.rb:21:in find_all' actionpack (3.0.0) lib/action_view/paths.rb:20:ineach’
actionpack (3.0.0) lib/action_view/paths.rb:20:in find_all' actionpack (3.0.0) lib/action_view/paths.rb:14:infind’
actionpack (3.0.0) lib/action_view/lookup_context.rb:81:in
find_template' actionpack (3.0.0) lib/action_view/base.rb:186:insend
actionpack (3.0.0) lib/action_view/base.rb:186:in find_template' actionpack (3.0.0) lib/action_view/render/rendering.rb:46:in_determine_template’
actionpack (3.0.0) lib/action_view/render/rendering.rb:24:in
render' actionpack (3.0.0) lib/abstract_controller/rendering.rb:114:in_render_template’
actionpack (3.0.0) lib/abstract_controller/rendering.rb:108:in
render_to_body' actionpack (3.0.0) lib/action_controller/metal/renderers.rb:47:inrender_to_body’
actionpack (3.0.0) lib/action_controller/metal/compatibility.rb:
55:in render_to_body' actionpack (3.0.0) lib/abstract_controller/rendering.rb:101:inrender_to_string’
actionpack (3.0.0) lib/abstract_controller/rendering.rb:92:in
render' actionpack (3.0.0) lib/action_controller/metal/rendering.rb:17:inrender’
actionpack (3.0.0) lib/action_controller/metal/instrumentation.rb:
40:in render' activesupport (3.0.0) lib/active_support/core_ext/benchmark.rb:5:inms’
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/benchmark.rb:308:in realtime' activesupport (3.0.0) lib/active_support/core_ext/benchmark.rb:5:inms’
actionpack (3.0.0) lib/action_controller/metal/instrumentation.rb:
40:in render' actionpack (3.0.0) lib/action_controller/metal/instrumentation.rb: 78:incleanup_view_runtime’
activerecord (3.0.0) lib/active_record/railties/
controller_runtime.rb:15:in cleanup_view_runtime' actionpack (3.0.0) lib/action_controller/metal/instrumentation.rb: 39:inrender’
actionpack (3.0.0) lib/action_controller/metal/implicit_render.rb:
10:in default_render' actionpack (3.0.0) lib/action_controller/metal/implicit_render.rb: 5:insend_action’
actionpack (3.0.0) lib/abstract_controller/base.rb:150:in
process_action' actionpack (3.0.0) lib/action_controller/metal/rendering.rb:11:inprocess_action’
actionpack (3.0.0) lib/abstract_controller/callbacks.rb:18:in
process_action' activesupport (3.0.0) lib/active_support/callbacks.rb:435:in_run__117499033__process_action__943997142__callbacks’
activesupport (3.0.0) lib/active_support/callbacks.rb:409:in send' activesupport (3.0.0) lib/active_support/callbacks.rb:409:in_run_process_action_callbacks’
activesupport (3.0.0) lib/active_support/callbacks.rb:93:in send' activesupport (3.0.0) lib/active_support/callbacks.rb:93:inrun_callbacks’
actionpack (3.0.0) lib/abstract_controller/callbacks.rb:17:in
process_action' actionpack (3.0.0) lib/action_controller/metal/instrumentation.rb: 30:inprocess_action’
activesupport (3.0.0) lib/active_support/notifications.rb:52:in
instrument' activesupport (3.0.0) lib/active_support/notifications/ instrumenter.rb:21:ininstrument’
activesupport (3.0.0) lib/active_support/notifications.rb:52:in
instrument' actionpack (3.0.0) lib/action_controller/metal/instrumentation.rb: 29:inprocess_action’
actionpack (3.0.0) lib/action_controller/metal/rescue.rb:17:in
process_action' actionpack (3.0.0) lib/abstract_controller/base.rb:119:inprocess’
actionpack (3.0.0) lib/abstract_controller/rendering.rb:40:in
process' actionpack (3.0.0) lib/action_controller/metal.rb:133:indispatch’
actionpack (3.0.0) lib/action_controller/metal/rack_delegation.rb:
14:in dispatch' actionpack (3.0.0) lib/action_controller/metal.rb:173:inaction’
actionpack (3.0.0) lib/action_dispatch/routing/route_set.rb:62:in
call' actionpack (3.0.0) lib/action_dispatch/routing/route_set.rb:62:indispatch’
actionpack (3.0.0) lib/action_dispatch/routing/route_set.rb:27:in
call' rack-mount (0.6.13) lib/rack/mount/route_set.rb:148:incall’
rack-mount (0.6.13) lib/rack/mount/code_generation.rb:93:in
recognize' rack-mount (0.6.13) lib/rack/mount/code_generation.rb:68:inoptimized_each’
rack-mount (0.6.13) lib/rack/mount/code_generation.rb:92:in
recognize' rack-mount (0.6.13) lib/rack/mount/route_set.rb:139:incall’
actionpack (3.0.0) lib/action_dispatch/routing/route_set.rb:492:in
call' hoptoad_notifier (2.3.6) lib/hoptoad_notifier/rack.rb:27:incall’
actionpack (3.0.0) lib/action_dispatch/middleware/
best_standards_support.rb:17:in call' actionpack (3.0.0) lib/action_dispatch/middleware/head.rb:14:incall’
rack (1.2.1) lib/rack/methodoverride.rb:24:in call' actionpack (3.0.0) lib/action_dispatch/middleware/params_parser.rb: 21:incall’
actionpack (3.0.0) lib/action_dispatch/middleware/flash.rb:182:in
call' actionpack (3.0.0) lib/action_dispatch/middleware/session/ abstract_store.rb:149:incall’
actionpack (3.0.0) lib/action_dispatch/middleware/cookies.rb:287:in
call' activerecord (3.0.0) lib/active_record/query_cache.rb:32:incall’
activerecord (3.0.0) lib/active_record/connection_adapters/abstract/
query_cache.rb:28:in cache' activerecord (3.0.0) lib/active_record/query_cache.rb:12:incache’
activerecord (3.0.0) lib/active_record/query_cache.rb:31:in call' activerecord (3.0.0) lib/active_record/connection_adapters/abstract/ connection_pool.rb:355:incall’
actionpack (3.0.0) lib/action_dispatch/middleware/callbacks.rb:46:in
call' activesupport (3.0.0) lib/active_support/callbacks.rb:415:in_run_call_callbacks’
actionpack (3.0.0) lib/action_dispatch/middleware/callbacks.rb:44:in
call' rack (1.2.1) lib/rack/sendfile.rb:107:incall’
actionpack (3.0.0) lib/action_dispatch/middleware/remote_ip.rb:48:in
call' actionpack (3.0.0) lib/action_dispatch/middleware/show_exceptions.rb: 46:incall’
railties (3.0.0) lib/rails/rack/logger.rb:13:in call' rack (1.2.1) lib/rack/runtime.rb:17:incall’
activesupport (3.0.0) lib/active_support/cache/strategy/
local_cache.rb:72:in call' rack (1.2.1) lib/rack/lock.rb:11:incall’
rack (1.2.1) lib/rack/lock.rb:11:in synchronize' rack (1.2.1) lib/rack/lock.rb:11:incall’
actionpack (3.0.0) lib/action_dispatch/middleware/static.rb:30:in
call' railties (3.0.0) lib/rails/application.rb:168:incall’
railties (3.0.0) lib/rails/application.rb:77:in send' railties (3.0.0) lib/rails/application.rb:77:inmethod_missing’
railties (3.0.0) lib/rails/rack/log_tailer.rb:14:in call' rack (1.2.1) lib/rack/content_length.rb:13:incall’
rack (1.2.1) lib/rack/handler/webrick.rb:52:in service' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ 1.8/webrick/httpserver.rb:104:inservice’
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/webrick/httpserver.rb:65:in run' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ 1.8/webrick/server.rb:173:instart_thread’
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/webrick/server.rb:162:in start' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ 1.8/webrick/server.rb:162:instart_thread’
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/webrick/server.rb:95:in start' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ 1.8/webrick/server.rb:92:ineach’
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/webrick/server.rb:92:in start' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ 1.8/webrick/server.rb:23:instart’
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/webrick/server.rb:82:in start' rack (1.2.1) lib/rack/handler/webrick.rb:13:inrun’
rack (1.2.1) lib/rack/server.rb:213:in start' railties (3.0.0) lib/rails/commands/server.rb:65:instart’
railties (3.0.0) lib/rails/commands.rb:30
railties (3.0.0) lib/rails/commands.rb:27:in tap' railties (3.0.0) lib/rails/commands.rb:27 script/rails:6:inrequire’
script/rails:6

Anyone?

Hmm… which Ruby are you running?

From http://edgeguides.rubyonrails.org/3_0_release_notes.html

Note that Ruby 1.8.7 p248 and p249 have marshaling bugs that crash Rails
3.0. Ruby Enterprise Edition have these fixed since release
1.8.7-2010.02 though. On the 1.9 front, Ruby 1.9.1 is not usable because
it outright segfaults on Rails 3.0, so if you want to use Rails 3 with
1.9.x jump on 1.9.2 for smooth sailing.

and some other goodies you may want to look at (we don’t know what
you’ve done already…)

It turns out that Github’s Hubahuba plugin was causing the issues.

Thanks for your help.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs