From 1aba3212c69bb3f05d53dfa5a34d5df4f5e166c6 Mon Sep 17 00:00:00 2001 From: p31729568 Date: Thu, 18 Jul 2019 08:56:13 +0800 Subject: [PATCH] fix library form cover --- app/views/libraries/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/libraries/_form.html.erb b/app/views/libraries/_form.html.erb index 0b5201e3..6a1afdef 100644 --- a/app/views/libraries/_form.html.erb +++ b/app/views/libraries/_form.html.erb @@ -73,7 +73,7 @@
- <% cover_url = cover_exists ? named_attachment_path(@library.cover.id, @library.cover.filename) : '' %> + <% cover_url = cover_exists ? download_attachment_path(@library.cover_id) : '' %>