search for: model2_id

Displaying 1 result from an estimated 1 matches for "model2_id".

Did you mean: model1_id
2009 Aug 28
4
Objects in Views
...model2 = Model2.all in my ''new'' view, I am using the @controllerModel to create the form for new and I am using the @model1 & @model2 within the form to populate 2 combo boxes in the following manner : f.select :model1_id, @model1.collect { |m1| [m1.name, m1.id] } f.select :model2_id, @model2.collect { |m2| [m2.name, m2.id] } Now everything works fine, the form is generated fine, there are no errors even the form submit works fine when I ensure that all the required fields (ControllerModel validations). But in the event some of my validations fail and in the controller I do a...