Forum: Ruby on Rails relationship + XML

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
4e1efa99260e9af8e688644a09ac5c71?d=identicon&s=25 Wouter (Guest)
on 2009-04-22 21:14
(Received via mailing list)
Hey,

I am developping a website in ruby on rails and I am wondering how i
can creaty something like this!

xml:
<activity>
  <..>
  <user></user>
   <plaze></plaze>
</activity>

1 parent model activity and 2 child models user and plaze!

How can i make this in ruby on rails? How do i have to make the
relationship and how i can get the xml reponse like this?

Thank you
4e1efa99260e9af8e688644a09ac5c71?d=identicon&s=25 Wouter (Guest)
on 2009-04-26 08:11
(Received via mailing list)
nobody? I probably have to work with nested resources but how do i get
XML like this?
This topic is locked and can not be replied to.