I''m getting the following error message under rc1:
ActionView::TemplateError (wrong number of arguments (1 for 0)) on line
#54 of app/views/admin/admin_index.rhtml:
In my view (* = Line 54):
<%=start_form_tag(:action=>"sales_by_author")%>
*<%=select("author","id",@authors.collect {|a|
[a.name,a.id]})%>
<%=submit_tag("Go")%>
<%=end_form_tag()%>
Part of the trace:
C:/INSTAN~2/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5618/lib/action_view/helpers/form_options_helper.rb:300:in
`value''
C:/INSTAN~2/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5618/lib/action_view/helpers/form_options_helper.rb:300:in
`to_select_tag''
C:/INSTAN~2/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5618/lib/action_view/helpers/form_options_helper.rb:66:in
`select''
Seems to be a problem with line 300:
value = value(object)
in form_options_helper.rb
This works fine under 1.1.6
I''ve tried upgrading to form_for with the same result.
Any ideas??
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---