Reputation: 271
If you have an array in Rails, to_xml will nest each object under a 'records' tag. Is there a way to override this to name it something else?
Upvotes: 0
Views: 488
my_array.to_xml :root => 'foos'
Upvotes: 2