diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2017-10-02 16:54:33 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2017-10-02 16:54:33 +0200 |
commit | 1bce43d6a51ee09631f55cf427a2e110d901ecb2 (patch) | |
tree | 872cf8d6d975c5c17d446e7ec7d45e52ce669242 /views | |
parent | ac268300ef9e97f8b1a3e2fc6d0bf5903bf7067b (diff) | |
download | norsk-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.erb | 2 |
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> |