class OldSegmentController < ApplicationController
def history
- response.headers["Content-Type"] = 'application/xml'
+ response.headers["Content-Type"] = 'text/xml'
segment = Segment.find(params[:id])
unless segment
return
end
- doc = get_xml_doc
+ doc = OSM::API.new.get_xml_doc
segment.old_segments.each do |old_segment|
doc.root << old_segment.to_xml_node
render :text => doc.to_s
end
-
-
-
-
-
end