Valentino Lun wrote: > <%= select_tag(:event_status, options_for_select([""]) + > options_from_collection_for_select(@event_status_list, :value, :detail)) > %>
The trick is recognizing options_from_collection_for_select(), not select_tag(), creates the <options>, and only they can use the selected='selected' attribute. Google for options_from_collection_for_select() and "default value"... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

