search for: metro_area

Displaying 1 result from an estimated 1 matches for "metro_area".

Did you mean: dentro_area
2005 Dec 19
0
Pre-selecting options_from_collection_for_select Options
I''m trying to use options_from_collection_for_select to generate options for a multiple select: <select id="metro_area_states" name="states[]" size="10" multiple="multiple"> <%= options_from_collection_for_select State.find(:all), :id, :name, @metro_area.states %> </select> When selecting values for the first time, it works great. I use @metro_area.state_ids=...