From a9f8b74a95296028034c2689bd21a08e37a02e3b Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Fri, 26 Feb 2016 17:34:58 +0100 Subject: [PATCH] Error display partial added --- app/views/shared/_error_messages.slim | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 app/views/shared/_error_messages.slim diff --git a/app/views/shared/_error_messages.slim b/app/views/shared/_error_messages.slim new file mode 100644 index 0000000..386a006 --- /dev/null +++ b/app/views/shared/_error_messages.slim @@ -0,0 +1,6 @@ +- if target.errors.any? + div id="errorExplanation" + h2 Errors + ul + - target.errors.full_messages.each do |msg| + li = msg