im trying to do default value for input
works ok:
<%= f.input_field :quantity, default: \'1\' %>
but i need f.i
You can use the selected option of simple_form: <%= f.input :quantity, selected: f.object.quantity || '1' %>
selected
<%= f.input :quantity, selected: f.object.quantity || '1' %>