From 2b664060f45efd7329b53f87f83cc764a5a53bdb Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 10 Oct 2015 14:52:35 +0200 Subject: Don't display error message when there's no errors. --- views/layout.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views') diff --git a/views/layout.erb b/views/layout.erb index 8dd0c31..eb1d803 100644 --- a/views/layout.erb +++ b/views/layout.erb @@ -8,7 +8,7 @@ Norsk Urskog 2015 - Påmeldingsskjema for band - <% if @band && @band.errors %> + <% if @band && @band.has_errors %>

Det er feil i skjemaet!

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

-- cgit v1.2.3