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