diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index 048de0c..22b1e5c 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -3,7 +3,7 @@
<% if @latest_arts.first&.image&.attached? %>
- <%= image_tag @latest_arts.first.webp_image.processed, class: "w-full h-full object-cover" %> + <%= image_tag @latest_arts&.first&.webp_image&.processed, class: "w-full h-full object-cover" %>
<% end %>