I\'ve created a form
<%= form_for [current_user,@product,@bid] do |f| %> <%= f.number_field :bid_amount %> <%= f.n
<%= f.number_field :bid_amount %>
<%= f.n
user740584 is right, the user should not be able to edit the product_id.
If you really do need it on your form you can use a
<%= f.hidden_field :product_id %>