It depends on how you display the select tag, but if you use options_for_select, you can do this:
@selected = params [: selected]
select_tag: selected, options_for_select ([[[Something 1 ", 1], [" Something 2 ", 2]], @selected)
It will indicate options for selection that @selected will use as the selected value.
source share