I have the following method to deliver an xml response:
def xslt_layout @ticket = Ticket.find_by_id(params[:id]) render :text => "#{@ticket.xml}", :layout => false, :filename => "# {@ticket.ticket_number}.xml", :content_type => "application/xml" end
The xml is generated using Builder as a Ticket model method and has both camel case and upper case element names in it. Inspecting the xml using a script/console query shows the tag names in the correct case, but the Rails stack is converting them to lowercase e.g. <Ticket/> becomes <ticket/>
How can I prevent this behaviour?
david