Displaying 2 results from an estimated 2 matches for "pointofcontact".
2006 Feb 10
0
Update two models that have belongs_to relationship
I have model Program and model PointOfContact. Program belongs to
PointOfContact. There is a form to update values, which shows attributes
from both models on one form. What is the best way to update the models
with one call. I tried this and it did not work
Controller code:
@program_old = Program.find(params[:id])
@program = Pro...
2006 Jan 24
0
Showing error messages for two models as one heading
I have two models Program and PointOfContact and here is their
relationship
Program belongs_to PointOfContact
PointOfContact has one Program
There is a single form to input a program and it''s associated point of
contact information. The default behaviour in Rails seeems to be to show
two different error messages (boxes) on the t...