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.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to