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