im trying to do default value for input
works ok:
<%= f.input_field :quantity, default: \'1\' %>
but i need f.i
You can do
<%= f.input :quantity, value: f.object.quantity || '1' %>
Nowadays, leaving off the input_html key.
input_html