class OldNodeController < ApplicationController
def history
- response.headers["Content-Type"] = 'application/xml'
+ response.headers["Content-Type"] = 'text/xml'
node = Node.find(params[:id])
unless node
return
end
- doc = get_xml_doc
+ doc = OSM::API.new.get_xml_doc
node.old_nodes.each do |old_node|
doc.root << old_node.to_xml_node