various map API rails stuff

This commit is contained in:
Steve Coast 2006-11-27 15:06:34 +00:00
parent 6b73747271
commit 2803612d9d
8 changed files with 53 additions and 25 deletions

View file

@ -68,7 +68,7 @@ class Segment < ActiveRecord::Base
doc = XML::Document.new
doc.encoding = 'UTF-8'
root = XML::Node.new 'osm'
root['version'] = '0.4'
root['version'] = API_VERSION
root['generator'] = 'OpenStreetMap server'
doc.root = root
root << to_xml_node()