rxml templates automatically instantiate a xml builder object under the "xml" variable, so if you are passing it from the parent, you are getting it overriden by the one created at the beginning of the template.
what i usually do is pass it under another name (parent_xml is perfect) and then do something like
xml = parent_xml unless parent_xml.nil?
this way you can consistently use the "xml" variable as your root element throughout all the templates/partials
Wes Gamble wrote: