Hi, I have a strange problem. Using accepts_nested_attributes_for, if I add on top of that the validates_associated declaration, AR makes 1 SQL query based on the parent_id (I use acts_as_list and acts_as_tree) for each associated child POSTed. When I remove the validates_associated declaration, the sql queries disappear and in fact if the associated models are not valid, then the parent model won't be valid either, as if the validates_associated was useless for me. Is there something that I am not getting here? I find it very strange. Thanks in advance to whoever can shed light on this.
on 2009-05-30 22:08