Fix exception with XML notes#index when no notes are found
authorTom Hughes <tom@compton.nu>
Wed, 24 Apr 2013 08:41:08 +0000 (09:41 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 24 Apr 2013 08:41:08 +0000 (09:41 +0100)
app/views/notes/index.xml.builder

index 38b239a..1e230b5 100644 (file)
@@ -1,3 +1,3 @@
 xml.instruct!
 
 xml.instruct!
 
-xml << render(:partial => "note", :collection => @notes)
+xml.notes << (render(:partial => "note", :collection => @notes) || "")