How to add default value to a number_field in rails?
<p><%= f.number_field :product_id, :value => @product.id %></p>
more details on: NumberField
Just:
<p><%= f.number_field :product_id, :value => @product.id %></p>
<p><%= f.number_field :product_id, :value => @product.id %></p>
more details on: NumberField
Just:
<p><%= f.number_field :product_id, :value => @product.id %></p>