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 is saved and have the children validated
Any workaround I see requires a lot of coercing of these
relationships together over and over again.
Computing Staff - Webmaster
Kavli Institute for Theoretical Physics
University of California, Santa Barbara