From 0edd5d8c2c110bb1f2bd86921aec43a0830a4e3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sen=C3=A9n=20Rodero=20Rodr=C3=ADguez?= Date: Mon, 24 Jul 2017 14:45:52 +0200 Subject: [PATCH] Add missing class to file input custom error to hide and show correctly. --- app/views/documents/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/documents/_form.html.erb b/app/views/documents/_form.html.erb index f3499b413..6cb596a3a 100644 --- a/app/views/documents/_form.html.erb +++ b/app/views/documents/_form.html.erb @@ -23,7 +23,7 @@ <% if @document.errors.has_key?(:attachment) %> -
+
<%= errors_on_attachment(@document)%>