]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/notes/index.gpx.builder
Treeat user as logged in after a password reset
[rails.git] / app / views / notes / index.gpx.builder
index 7a30460274558f8525de58cd6cabca2c169c143f..5207ec3f81d82430913b4a18ce9cdb0c08fcbf0c 100644 (file)
@@ -1,7 +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", :collection => @notes)
+  xml << (render(:partial => "note", :collection => @notes) || "")
 end