Select option to a select_tag after submitting form

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?

All cities Stockholm Göteborg <---- for example if this was the choice ...and so on

THANKS!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs