From 48c3cbb3d14db405c65b4e17aac237a818dae211 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Mon, 6 Feb 2017 21:28:28 +0000 Subject: [PATCH] Change to hash attributes syntax in harvests#show --- app/views/harvests/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/harvests/show.html.haml b/app/views/harvests/show.html.haml index df0ee7a55..7f8c28657 100644 --- a/app/views/harvests/show.html.haml +++ b/app/views/harvests/show.html.haml @@ -60,6 +60,6 @@ = render partial: 'photos/thumbnail', locals: { photo: p } - if can?(:create, Photo) && can?(:edit, @harvest) .col-md-2 - .thumbnail(style='height: 220px') + .thumbnail{style: 'height: 220px'} %p{ style: 'text-align: center; padding-top: 50px' } = link_to "Add photo", new_photo_path(type: "harvest", id: @harvest.id), class: 'btn btn-primary'