I am newbie ruby programmer and I´m suffering this error
This is part of my "new" form to create new "Subasta" objects
<%= form_for @subasta, url: {action: "crear"} do |s| %>
<%= s.label :precioinicial, 'Precio inicial' %>
<%= s.number_field :precioinicial, class: "form-control", in: 1...10000 %>
<%= render :partial => "puja_minima", :locals=>{:s=>s} %>
This "new" form has a partial with another Subasta´s field
<%= s.label :puja_minima, 'La puja empezará por' %>
<%= s.number_field :puja_minima, class: "form-control", in: 0...10000, disabled: true %>
The problem is the field 'puja_minima' doesn`t reachs the controller and it´s necessary:
validates :puja_minima, presence: true
The error is:
The form contains 2 errors. * Puja minima La puja mínima no debe estar vacía