Fixed image url for pdf preview if rendered with turbo_stream

This commit is contained in:
David Böhm
2024-08-10 12:02:48 +02:00
parent debb015c33
commit d018d30485

View File

@@ -5,7 +5,7 @@
<td class="p-3 text-sm text-hsrm-gray whitespace-nowrap"> <%= job.fullname %> </td>
<td class="p-3 text-sm text-hsrm-gray whitespace-nowrap">
<% if job.pdf.attached? %>
<%= image_tag job.pdf.preview(resize_to_limit: [100, 100]) %>
<%= image_tag url_for(job.pdf.preview(resize_to_limit: [100, 100])) %>
<% end %>
</td>
<td class="p-3 text-sm text-hsrm-gray whitespace-nowrap">