I'm trying to figure out how to set the selected option of a select box generated by SimpleForm. My code is along the lines of:
<%= simple_form_for(@user) do |f| %>
<%= f.association :store, default: 1 %>
Of course the default: 1
part does not work.
TIA
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…