Displaying 1 result from an estimated 1 matches for "acc56cc1".
2006 Mar 14
2
Two unsaved related objects
Given the two tables Parent, Child where Parent has_many children:
If I don''t save parent first then it seems that child.parent will not
be assigned automatically if I call parent.children << child . Must
the parent record be saved before I call parent.children << child ?
If I must save Parent first then can someone explain to me how I can
call parent.valid? before it