I have an object that has_many
child objects that should be rendered as xml. This is not a problem. My Problem is that I creat a Hash
containing this data like the parser needs it. But rails atomaticly encloses the whole file with
<hash>
<objects type="array">
<object>
...
...
...
</object>
</objects>
</hash>
I need to get rid of the type="array"
and the <hash>
how can I handle this? I didnt find anything on the documentation.
to_xml
method? #1740405 – Ladder:skip_types => true
– Crouch