Displaying 1 result from an estimated 1 matches for "cildren".
Did you mean:
children
2006 Apr 15
0
parent.children not updated (has_many)
...9;)
parent.children.find(3).name
=> ''old value''
The database is updated correctly, SELECT name FROM children WHERE id=3
AND parent_id=1
=> ''Tom''
Only the array parent.children doesn''t seem to get updated. I cannot
force reloading (parent.cildren(true).find(3).name would do the trick)
because I would possibly lose unsaved children.
How can I update the parent.children array?
- Christian