On 7 January 2011 21:03, Tim Shaffer <[email protected]> wrote: > select_tag does not support prompt, as you have found. > > Easiest workaround is probably to just prepend the option manually: > > <%= select_tag(:sector_admin_select, "<option>All</option>" + > options_from_collection_for_select(@sectors, :id, :name, @sector)) %>
I've just tried this form but it doesn't show anything in the page. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

