1 class OldSegmentController < ApplicationController
4 response.headers["Content-Type"] = 'text/xml'
5 segment = Segment.find(params[:id])
8 render :nothing => true, :staus => 404
12 doc = OSM::API.new.get_xml_doc
14 segment.old_segments.each do |old_segment|
15 doc.root << old_segment.to_xml_node
18 render :text => doc.to_s