Given a collection of Active Record objects, you may use the collection_select helper method to produce a select form field. You need to pass in a number of arguments to the helper function.
# helper and arguments... # collection_select( model, id, collection, option_value, option_name, options, html_options)
<%= collection_select("states", "state_id", State.participating, "abbreviation", "name", {:selected=> get_current_state_or_nil }, {:onchange=>"document.location='/states/'+this.value"} ) %>
<select id="state_id" name="state[id]" onchange="document.location='/states/'+this.value"> <option value="AL">Alabama</option> <option value="AK">Alaska</option> <option value="AZ">Arizona</option> <option value="AR">Arkansas</option> </select>
Just finishing up brewing up some fresh ground comments...