Re: has_many association with autosave issues

48 views
Skip to first unread message

Matt Jones

unread,
Jul 10, 2012, 7:47:03 AM7/10/12
to rubyonra...@googlegroups.com


On Monday, 9 July 2012 20:37:32 UTC-4, bubbler wrote:
I'd like to use autosave => true for an association for its added benefits: the parent doesn't save unless the children saves.  However, it seems to skip validations when saving the children.  And this seems to be the case since the beginning of time...

Anyone know why?

Sometimes it's useful - if you want the save to fail if any child has errors, use validates_associated:


--Matt Jones 
Reply all
Reply to author
Forward
0 new messages