]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/notes/show.gpx.builder
Move the notes api methods into a controller in the api namespace
[rails.git] / app / views / api / notes / show.gpx.builder
diff --git a/app/views/api/notes/show.gpx.builder b/app/views/api/notes/show.gpx.builder
new file mode 100644 (file)
index 0000000..f87ff4d
--- /dev/null
@@ -0,0 +1,9 @@
+xml.instruct!
+
+xml.gpx("version" => "1.1",
+        "creator" => "OpenStreetMap.org",
+        "xmlns" => "http://www.topografix.com/GPX/1/1",
+        "xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance",
+        "xsi:schemaLocation" => "http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd") do
+  xml << render(:partial => "note", :object => @note)
+end