16 June 2008
When trying to have a value auto selected, I spent ages trying to understand why this was not working:
Select_tag(:field, options_for_select(@hash), selected _item)
After a little more CAREFUL reading of the documentation & the source code, this did the trick.
Select_tag(:field, options_for_select(@hash, selected_item))

Trackback URL