From 57a52a31486ec9af415d6d5b86a20a4a62abf488 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 1 Nov 2015 15:55:50 +0100 Subject: Fix numbering of song forms. --- views/index.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views') diff --git a/views/index.erb b/views/index.erb index f031838..65b8653 100644 --- a/views/index.erb +++ b/views/index.erb @@ -84,7 +84,7 @@

Låter

<% @band.songs.each_index do |i| %> - <%= erb :song, layout: false, locals: { song_number: i, song: @band.songs[i] } %> + <%= erb :song, layout: false, locals: { song_number: i + 1, song: @band.songs[i] } %> <% end %> -- cgit v1.2.3