I'm stumped on this one.. I'm using this:
<%= f.collection_select :project_type, @project_types, :name, :name, {:selected => "Other"}, class: 'form-control selectpicker', data: { 'live-search' => 'true' } %>
to set the project type to default when the user creates a new item. But when I edit the item it defaults back to whatever :selected => is set to.
My question is if there is some type of conditional I can add in "edit" or "create" that doesn't change my data when I'm editing. OR is there a different way to set a default value that has a different behavior than :selected =>