Displaying 1 result from an estimated 1 matches for "prototype_model".
2009 Feb 19
3
Associated child records not created on creation of a parent.
...appreciated.
Problem Statement ------------
PrototypeModel has many Departments .
Departments may also be grouped within Departments.
Trying to create a new PrototypeModel and populating the departments
(behind the scenes) from a template PrototypeModel specified by the
user in params[:prototype_model][:parent_id].
The save of the PrototypeModel fails as the new Department records are
invalid.
I checked the instances and find that the department.id is
nil. But that id is supposed to be populated by the associated
save! If I replace the departments.build argument in the
controller::cre...