search for: point_of_contact_old

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

2006 Feb 10
0
Update two models that have belongs_to relationship
...he 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 = Program.new(params[:program]) @program.id = @program_old.id @point_of_contact = PointOfContact.new(params[:point_of_contact]) @point_of_contact_old = PointOfContact.find(@program_old.point_of_contact_id) @point_of_contact.id = @point_of_contact_old.id current_user = session[:user].login @program.updated_by = current_user @point_of_contact.updated_by = current_user @program.pointOfContact = @point_of_contact @program...