From 925bd812a2c9000c4901384b70f20e65b0f53cd4 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 24 Apr 2013 09:41:08 +0100 Subject: [PATCH] Fix exception with XML notes#index when no notes are found --- app/views/notes/index.xml.builder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/notes/index.xml.builder b/app/views/notes/index.xml.builder index 38b239afc..1e230b55d 100644 --- a/app/views/notes/index.xml.builder +++ b/app/views/notes/index.xml.builder @@ -1,3 +1,3 @@ xml.instruct! -xml << render(:partial => "note", :collection => @notes) +xml.notes << (render(:partial => "note", :collection => @notes) || "") -- 2.43.2