Default value for input with simple_form
You can use the selected
option of simple_form:
<%= f.input :quantity, selected: f.object.quantity || '1' %>
You can try with something like this:
<%= f.input :quantity, input_html: {value: f.object.quantity || '1'} %>