How do I select a default value in a blank form when using select vs
select is designed to choose a particular value for an attribute of an
object. The call is:
select object, method, choices, options, html_options
The given method on the given object is called and the item from the
choices that matches (if any) will be selected.
If this is for a create form, then set the new object's attribute to the
initial default you want in your method:
@item = Item.new
@item.state = default_state_value
Then, in the view:
<%= select :item, :state, ...