From 094c2c056b9ec065a49432d18e6faf7efe30d4b9 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Wed, 8 Oct 2025 21:54:25 -0500 Subject: [PATCH] Don't try to wrap with a download link, every file already has one in the caption --- app/views/active_storage/blobs/_blob.html.erb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/views/active_storage/blobs/_blob.html.erb b/app/views/active_storage/blobs/_blob.html.erb index 6a35805e0..02a8b1997 100644 --- a/app/views/active_storage/blobs/_blob.html.erb +++ b/app/views/active_storage/blobs/_blob.html.erb @@ -18,9 +18,7 @@ <% else %>
- <%= link_to rails_blob_path(blob, disposition: :attachment), class: "attachment__figure", download: blob.filename, title: "Download #{blob.filename}" do %> - <%= render "active_storage/blobs/web/representation", blob: blob %> - <% end %> + <%= render "active_storage/blobs/web/representation", blob: blob %>