I've got a Rails controller which is going to output a hash in XML format - for example:
class MyController < ApplicationController
# GET /example.xml
def index
@output = {"a" => "b"}
respond_to do |format|
format.xml {render :xml => @output}
end
end
end
However, Rails adds a <hash> tag, which I don't want, i.e.:
<hash>
<a>
b
</a>
</hash>
How can I just output this instead?
<a>
b
</a>