diff --git a/app/views/passports/show.html.erb b/app/views/passports/show.html.erb index d887944..bc42c4a 100644 --- a/app/views/passports/show.html.erb +++ b/app/views/passports/show.html.erb @@ -9,7 +9,9 @@
- <%= image_tag url_for(@passport.image), class: 'img-fluid' %> + <% if @passport.image.attached? %> + <%= image_tag url_for(@passport.image), class: 'img-fluid' %> + <% end %>