summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2017-10-02 16:54:33 +0200
committerHarald Eilertsen <haraldei@anduin.net>2017-10-02 16:54:33 +0200
commit1bce43d6a51ee09631f55cf427a2e110d901ecb2 (patch)
tree872cf8d6d975c5c17d446e7ec7d45e52ce669242 /views
parentac268300ef9e97f8b1a3e2fc6d0bf5903bf7067b (diff)
downloadnorsk-urskog-registrations-1bce43d6a51ee09631f55cf427a2e110d901ecb2.tar.gz
norsk-urskog-registrations-1bce43d6a51ee09631f55cf427a2e110d901ecb2.tar.bz2
norsk-urskog-registrations-1bce43d6a51ee09631f55cf427a2e110d901ecb2.zip
Don't validate again when checking if valid.
Unless validation has not yet been performed, of course.
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 9a357ff..4584662 100644
--- a/views/layout.erb
+++ b/views/layout.erb
@@ -7,7 +7,7 @@
<title>Påmeldingsskjema - Norsk Urskog Metal Sampler</title>
</head>
<body>
- <% if @band && @band.has_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>