Syntax fix for screenshot variants in ActiveStorage

This commit is contained in:
Christoph Haas 2020-08-21 19:12:10 +02:00
parent 771ca41240
commit 879ddcfa69
6 changed files with 14 additions and 22 deletions

View file

@ -16,8 +16,8 @@
- @current_users_screenshots.each do |screenshot|
.column
a.black.fancybox href=rails_representation_url(screenshot.image.variant(resize_to_limit: "800x600", timestamp: false))
a.black.fancybox href=rails_representation_url(screenshot.image.variant(resize_to_limit: [800,600], timestamp: false))
div.grid-thumbnail
= image_tag(screenshot.image.variant(resize_to_limit: "160x120"), alt: screenshot.caption, class: 'thumbnail')
= image_tag(screenshot.image.variant(resize_to_limit: [160,120]), alt: screenshot.caption, class: 'thumbnail')
div
= screenshot.description