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