I am ''trying'' to use ''options_for_select'' <select name="selected_distance" id="selected_distance" style="width:8%;"> <%= options_for_select(["2", "5", "10", "15", "25" ], @selected_distance ) %> </select> which generates the html.... <select name="selected_distance" id="selected_distance" style="width8%;"> <option value="2">2</option> <option value="5">5</option> <option value="10" selected="selected">10</option> <option value="15">15</option> <option value="25">25</option> </select> but the dropdown selection is NOT selected, first item always...... what''s wrong ? (OS X , Firefox) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---