Displaying 1 result from an estimated 1 matches for "a3646024".
Did you mean:
a164024
2006 Mar 27
2
Form Validation with 2 models on form. Nubee Question
I have one form in which i enter Person data and Employee Data. A Person
and Employee model are used. I am using a legacy schema, so this is
forced.
How do i use save the data while using rails form validation?? I only
want both models to save if they both save.
Controller :
This odviously doesnt work:
def create_employee_and_person
employee = Employee.new(params[:employee])
person =