From a65c17851aa8a484a0e1ee6bfa16c1231665cf24 Mon Sep 17 00:00:00 2001 From: Bohung Date: Wed, 6 Apr 2022 13:46:38 +0800 Subject: [PATCH] Fix image url in show page. --- app/controllers/galleries_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/galleries_controller.rb b/app/controllers/galleries_controller.rb index a4a4b53..b06a41a 100644 --- a/app/controllers/galleries_controller.rb +++ b/app/controllers/galleries_controller.rb @@ -102,6 +102,7 @@ class GalleriesController < ApplicationController "image_short_description" => a.title, "alt_title" => alt_text, "link_to_show" => "#" + a.id.to_s, + "src" => a.file.url, "thumb-src" => a.file.thumb.url, "thumb-large-src" => a.file.thumb_large.url, "mobile-src" => a.file.mobile.url,