If a controller need process all request as XML instead of HTML as default,you can code in this controller like this
before :force_to_xml
private
def force_to_xml
request.format = :xml
end
so easy.
If a controller need process all request as XML instead of HTML as default,you can code in this controller like this
before :force_to_xml
private
def force_to_xml
request.format = :xml
end
so easy.