From fbf8cecd1ec39152a2f4d4be73042063331ee7c5 Mon Sep 17 00:00:00 2001 From: chiu Date: Sat, 21 Sep 2019 15:00:43 +0800 Subject: [PATCH] Update _form_file.html.erb fix the file can't show error --- app/views/admin/archive_files/_form_file.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/archive_files/_form_file.html.erb b/app/views/admin/archive_files/_form_file.html.erb index 7e1c6a2..6738ffd 100644 --- a/app/views/admin/archive_files/_form_file.html.erb +++ b/app/views/admin/archive_files/_form_file.html.erb @@ -1,7 +1,7 @@ <% if form_file.new_record? %>
<% else %> -
+
<% if form_file.file.blank? %> <%= t(:no_file) %>