From 55983d657c857077ff0144e4c18d84194597b67e Mon Sep 17 00:00:00 2001
From: Harald Eilertsen
Date: Fri, 30 Oct 2015 14:32:07 +0100
Subject: Simplify form: Don't mess with adding songs, display them all at
once.
---
views/index.erb | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
(limited to 'views')
diff --git a/views/index.erb b/views/index.erb
index ab3a762..9b39a9e 100644
--- a/views/index.erb
+++ b/views/index.erb
@@ -66,10 +66,8 @@
nøye med å oppgi riktige navn (ingen pseudonymer) på utøvere og komponister, da vi sjekker dette
opp imot TONO/NCB for å sikre at evt. vederlag blir betalt riktig.
-
-
- <% @band.songs.each do |s| %>
- <%= erb :song, layout: false, locals: { song_number: 1, song: s } %>
+ <% @band.songs.each_index do |i| %>
+ <%= erb :song, layout: false, locals: { song_number: i, song: @band.songs[i] } %>
<% end %>
--
cgit v1.2.3