I\'m trying to accept a decimal value (USD, so 12.24 would be an example) with the number_field method.
<%= f.number_fiel
For price fields you can use this:
f.number_field :price, value: @item.price ? '%.2f' % @item.price : nil, min: 0, step: 0.01
It works fine even if you allow blank values.