summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2015-11-01 12:58:19 +0100
committerHarald Eilertsen <haraldei@anduin.net>2015-11-01 13:39:43 +0100
commit5931fa9d67624943594968a10a4b38a682bf374c (patch)
tree12b94dc7f7d0478e0abc413f2359a6ced9de05f8 /views
parenta06e5e7eb90206844fb21b317f1f923a527b3087 (diff)
downloadnorsk-urskog-registrations-5931fa9d67624943594968a10a4b38a682bf374c.tar.gz
norsk-urskog-registrations-5931fa9d67624943594968a10a4b38a682bf374c.tar.bz2
norsk-urskog-registrations-5931fa9d67624943594968a10a4b38a682bf374c.zip
Don't list songs with no title in submitted view.
Diffstat (limited to 'views')
-rw-r--r--views/submitted.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/submitted.erb b/views/submitted.erb
index d085b82..641f900 100644
--- a/views/submitted.erb
+++ b/views/submitted.erb
@@ -22,7 +22,7 @@
<p>Låter:</p>
<ul>
- <% @band.songs.each do |s| %>
+ <% @band.songs.reject {|s| s.title.empty? }.each do |s| %>
<li>
<%= s.title %><br>
Spilletid: <%= s.time %><br>