Displaying 1 result from an estimated 1 matches for "chlild".
Did you mean:
child
2006 Feb 22
1
ActiveRecord strange behavior
...p
Child c
p.children << c => create the relationship in the database (why not need
p.save to see the child add?)
why when i modifiy a field in c.how_old i have to explicity call to c.save if
i want to see the modification in database (p.save doesn''t persist the
modification of chlild c)
because when i modify the child c and apply p.save it does nothing !!!
Other question Why p.children << c doesn''t need to do p.save to see c in
database. (<< operator already done it !!)
Regards
Croco
-------------- next part --------------
An HTML attachment was scrubbe...