From 01987cc0b88fdb0748d8d71cca4f5e40ea8a2604 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Mon, 5 Oct 2015 20:13:33 +0200 Subject: Redirect back to form and display error if no songs specified. --- views/layout.erb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'views') diff --git a/views/layout.erb b/views/layout.erb index a6f8dd8..efda293 100644 --- a/views/layout.erb +++ b/views/layout.erb @@ -8,6 +8,17 @@ Norsk Urskog 2015 - Påmeldingsskjema for band + <% if @errors %> +
+

Det er feil i skjemaet!

+

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

+ +
+ <% end %> <%= yield %> -- cgit v1.2.3