Activerecord supports eager loading with the following syntax:
Author.find(:all, :include=>[{:posts=>:comments}, :categorizations].
to_xml has an :include option that supports a shallow form of eager
loading to create the xml: author.to_xml(:include[:posts]).
Is there a way to generate the xml from all associated objects for a
particular model instance?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---