summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2015-10-10 14:52:35 +0200
committerHarald Eilertsen <haraldei@anduin.net>2015-10-10 14:53:12 +0200
commit2b664060f45efd7329b53f87f83cc764a5a53bdb (patch)
treec853ff7ab7e62836e4c505856a5d60880fbe218a /views
parente95f4cf46ed0047083fb3825de02416ab7340feb (diff)
downloadnorsk-urskog-registrations-2b664060f45efd7329b53f87f83cc764a5a53bdb.tar.gz
norsk-urskog-registrations-2b664060f45efd7329b53f87f83cc764a5a53bdb.tar.bz2
norsk-urskog-registrations-2b664060f45efd7329b53f87f83cc764a5a53bdb.zip
Don't display error message when there's no errors.
Diffstat (limited to 'views')
-rw-r--r--views/layout.erb2
1 files changed, 1 insertions, 1 deletions
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 @@
<title>Norsk Urskog 2015 - Påmeldingsskjema for band</title>
</head>
<body>
- <% if @band && @band.errors %>
+ <% if @band && @band.has_errors %>
<div class="error">
<h1 class="error-heading">Det er feil i skjemaet!</h1>
<p>Vennligst se over følgende og prøv igjen:</p>