2009/8/14 Wouter <wouterg...@gmail.com>: >[snip] > But this will make 2 seperate arrays or am i wrong.. > i want to have place.shouts and place.photos in the same array.. > so like @objects = place.photos and place.shouts (but that don't work > off course) > and then i do @objects.to_xml > > How can i do this?
Is that the real question then? It was not clear to me. I have not used to_xml, but a glance at the docs at http://api.rubyonrails.org/classes/ActiveRecord/XmlSerialization.html suggests that associated models can be included by using :include, or have you not managed to get that to work? Colin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---