Change to hash attributes syntax in harvests#show

This commit is contained in:
Brenda Wallace
2017-02-06 21:28:28 +00:00
committed by Shiny
parent 740b8587f2
commit 48c3cbb3d1

View File

@@ -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'