I''m trying to do multiple nested includes on an AR find. Something
like:
@result = User.find_by_id(id, :include => [:something, [:nest_1 =>
[:a, :b]], [:nest_2 => [:c, :d]]])
Unfortunately when I view my logs, it seems like only the first include
actually works. Referencing anything from @result.nest_2, triggers a db
call. Has anyone experienced a similar issue, or have any hints to
something I could be doing wrong?
(I''m running rails 1.2.2.)
Any help would be greatly appreciated!
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---