1 class OldWayController < ApplicationController
5 after_filter :compress_output
9 way = Way.find(params[:id])
11 doc = OSM::API.new.get_xml_doc
13 way.old_ways.each do |old_way|
14 doc.root << old_way.to_xml_node
17 render :text => doc.to_s, :content_type => "text/xml"
18 rescue ActiveRecord::RecordNotFound
19 render :nothing => true, :status => :not_found
21 render :nothing => true, :status => :internal_server_error