On Sep 26, 9:27 am, Ar Chron <[EMAIL PROTECTED]> wrote:
> If you want only @directories, then you should create an rxml template
> to be used under software, where you marshall the xml data is any old
> format you want.
>
> for directory in @directories
>   xml.directory do
>     xml.directory_name(directory.name)
>     etc
>     etc
>   end
> end
> --
> Posted viahttp://www.ruby-forum.com/.

I want each directory as xml, just how it is...but the associated
"software" object, I want to include that. What you wrote initially
looks backwards to me.

since this is requested as directories.xml

<directory>
    ....
    <software version="<%= directory.software.version"><%=
directory.software.name %></software>
</directory>

It sounds like that's the only way to create an index.rxml file?

I figured there would be an automatic way to map associated models to
the default xml output.


--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to