I have created the following select box which works fine except for the
fact if you edit the item it defaults back to N/A instead of selecting
the correct location.
select_tag(“item[location_id]”, ‘N/A’ +
Ideally, I want to do something like this (which selects the correct
value on edit):
f.collection_select(:locations, @locations, :id, :name) %>
but how can I add an extra blank option at the top like I did with