projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b22299
)
Fix exception with XML notes#index when no notes are found
author
Tom Hughes
<tom@compton.nu>
Wed, 24 Apr 2013 08:41:08 +0000
(09:41 +0100)
committer
Tom Hughes
<tom@compton.nu>
Wed, 24 Apr 2013 08:41:08 +0000
(09:41 +0100)
app/views/notes/index.xml.builder
patch
|
blob
|
history
diff --git
a/app/views/notes/index.xml.builder
b/app/views/notes/index.xml.builder
index 38b239afc98e40bd5aec7ef58ebde5ce4de35593..1e230b55dca3f5e42bc58d16e9fab4c0577c9608 100644
(file)
--- 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) || ""
)