Wrong number of arguments (3 for 2)

Showing vendor/plugins/community_engine/app/views/users/new.html.haml
where line #40 raised:

wrong number of arguments (3 for 2)

Extracted source (around line #40):

37: %label{“for”=>“birthdate”}
38: Birthday:
39: %em (Required: you must be at least 13 years old to sign
up.)
40: = date_select :user, :birthday, {:start_year => 1926,
:end_year => Time.now.year - 13}
41:
42: %label{“for”=>“password”}
43: Type your password:

RAILS_ROOT: D:/InstantRails/rails_apps/caigentan
Application Trace | Framework Trace | Full Trace

D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/date_helper.rb:651:in
select_month' D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/date_helper.rb:651:insend’
D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/date_helper.rb:651:in
date_or_time_select' D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/date_helper.rb:646:ineach’
D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/date_helper.rb:646:in
date_or_time_select' D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/date_helper.rb:602:into_date_select_tag_without_error_wrapping’
D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/active_record_helper.rb:239:in
to_date_select_tag' D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/date_helper.rb:156:indate_select’
vendor/plugins/community_engine/app/views/users/new.html.haml:40:in
_run_plugin_47vendor47plugins47community_engine47app47views47users47new46html46haml' D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/haml-2.0.9/lib/haml/helpers/action_view_mods.rb:165:incall’
D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/haml-2.0.9/lib/haml/helpers/action_view_mods.rb:165:in
form_for_without_record_identification' D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/haml-2.0.9/lib/haml/helpers.rb:447:incall’
D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/haml-2.0.9/lib/haml/helpers.rb:447:in
haml_bind_proc' D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/form_helper.rb:317:infields_for’
D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/form_helper.rb:253:in
form_for_without_haml' D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/haml-2.0.9/lib/haml/helpers/action_view_mods.rb:171:inform_for_without_record_identification’
vendor/plugins/community_engine/engine_plugins/simply_helpful/lib/simply_helpful/form_helper_extensions.rb:15:in
send' vendor/plugins/community_engine/engine_plugins/simply_helpful/lib/simply_helpful/form_helper_extensions.rb:15:inform_method_with_record_identification’
vendor/plugins/community_engine/engine_plugins/simply_helpful/lib/simply_helpful/form_helper_extensions.rb:5:in
form_for' vendor/plugins/community_engine/app/views/users/new.html.haml:26:in_run_plugin_47vendor47plugins47community_engine47app47views47users47new46html46haml’
D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in
send' D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:inexecute’
D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_handlers/compilable.rb:29:in
send' D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_handlers/compilable.rb:29:inrender’
D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:35:in
render' D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:22:inrender_template’
D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:245:in
render_file' D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1108:inrender_for_file’
D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:841:in
render_with_no_layout' D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/layout.rb:251:inrender_without_benchmark’
D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:51:in
render' D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/benchmark.rb:8:inrealtime’
D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:51:in
render' D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1157:indefault_render’
D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1163:in
perform_action_without_filters' D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:580:incall_filters’
D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:601:in
run_before_filters' app/controllers/application.rb:43:inset_locale’

rails2.1
plugin: globalite

date_select :user, :birthday, {:start_year => 1926, :end_year =>
Time.now.year - 13}

???

Hey,

try:
date_select(“user”, “birthday”, :start_year => 1926, :end_year =>
Time.now.year-13)

On 4 Mar 2009, at 01:44, Zqj Zqj wrote:

Showing vendor/plugins/community_engine/app/views/users/new.html.haml
where line #40 raised:

Only time i’ve seen this is with plugins that fiddle with the date
helpers, globalite may well be one of them

Fred

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