How can I keep the selected option in the select_tag after submitting a form to the same page? Form <%= select_tag :city_id, options_from_collection_for_select(City.find(:all), :id, :name) %> After submit the page renders and then I want the selected city to be displayed in the select_tag, how can I do this? <select name="advertisement_country_id" id="advertisement_country_id"> <option value="">All cities</option> <option value="1">Stockholm</option> <option value="2" selected="selected">Göteborg</option> <---- for example if this was the choice ...and so on </select> THANKS! -- Posted via http://www.ruby-forum.com/. --0003255574aa95e64e047d99cce5 Content-Type: text/plain; charset=ISO-8859-1 -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. --0003255574aa95e64e047d99cce5--