Using rails_representation_url to link to URL of image variant
This commit is contained in:
parent
6cda78d1ee
commit
ee4c96c428
4 changed files with 5 additions and 6 deletions
|
|
@ -16,7 +16,7 @@
|
|||
- @current_users_screenshots.each do |screenshot|
|
||||
.column
|
||||
|
||||
a.black.fancybox href=screenshot.image.variant(resize: "800x600", timestamp: false)
|
||||
a.black.fancybox href=rails_representation_url(screenshot.image.variant(resize: "800x600", timestamp: false))
|
||||
div.grid-thumbnail
|
||||
= image_tag(screenshot.image.variant(resize: "160x120"), alt: screenshot.caption, class: 'thumbnail')
|
||||
div
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue