From 8c041f820af424978f92f8ba0e68e64d6caf0c5b Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Tue, 6 Oct 2015 21:12:06 +0200 Subject: In layout, display errors directly from @band.errors --- views/layout.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'views') diff --git a/views/layout.erb b/views/layout.erb index efda293..5f67f1e 100644 --- a/views/layout.erb +++ b/views/layout.erb @@ -8,13 +8,13 @@ Norsk Urskog 2015 - Påmeldingsskjema for band - <% if @errors %> + <% if @band && @band.errors %>

Det er feil i skjemaet!

Vennligst se over følgende og prøv igjen:

-- cgit v1.2.3