I am trying to get to_xml to output an xml structure with deep
associations.
I am currently using find with :include => [{:section => :component},
:client] which successfully retrieves all the records however the to_xml
function doesn’t allow that.
I am trying to get to_xml to output an xml structure with deep
associations.
I am currently using find with :include => [{:section => :component},
:client] which successfully retrieves all the records however the to_xml
function doesn’t allow that.
The stock to_xml function doesn’t allow that. You’ll have to write
your own XML output function in order to support this.
I am trying to get to_xml to output an xml structure with deep
associations.
I am currently using find with :include => [{:section => :component},
:client] which successfully retrieves all the records however the to_xml
function doesn’t allow that.
The stock to_xml function doesn’t allow that. You’ll have to write
your own XML output function in order to support this.
I did a search of the forum and it appears that edge rails has been
patched so that to_xml should support more than one level. I am running
on edge but has as yet been unable to get it working.