]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/notes/index.gpx.builder
Improve notes template
[rails.git] / app / views / notes / index.gpx.builder
index 7a30460274558f8525de58cd6cabca2c169c143f..5a7f34dbd59395a508fa5eef153d3330201c390f 100644 (file)
@@ -3,5 +3,5 @@ xml.instruct!
 xml.gpx("version" => "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