Displaying 1 result from an estimated 1 matches for "units_to_select".
2008 May 30
1
Parameters for FormOptionsHelper select vs. FormTagHelper select_tag
I must be missing something when it comes to the parameter differences
between form FormOptionsHelper select and FormTagHelper select_tag.
Code that follows, works perfectly -
<%= f.select :unit, units_to_select(@product), :size=>"20"%>
The following code, does not. The helper function never even seems to
be called.
<%= select_tag "unit", units_to_select(@product) %>
Why would this be the case? The only way I can seem to populate the
select_tag is to hardcode with "&...