im trying to do default value for input
works ok:
<%= f.input_field :quantity, default: \'1\' %>
but i need f.i
try this:
= f.input : quantity, input_html: { value: (f.object.quantity.present?) ? f.object.quantity : '1' }