[Rails] Re: format.xml not rendering associated model properly

2008-09-26 Thread chovy
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_n

[Rails] Re: format.xml not rendering associated model properly

2008-09-26 Thread Ar Chron
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 via http://w

[Rails] Re: format.xml not rendering associated model properly

2008-09-26 Thread Ar Chron
What magic were you expecting to have happen? (Rails did exactly what you told it to). Don't you want something like format.xml { render :xml => @software.to_xml( :include => :directories ) } -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You