Select Tag not working in 1.2rc1

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:into_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??

Guest wrote:

I’m getting the following error message under rc1:

Please ignore - I had extended ActionView, which caused the foul-up.

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