From 3299f7e726f7a9b18646de1fc1a05848374ba91b Mon Sep 17 00:00:00 2001 From: guange <8863824@gmail.com> Date: Fri, 24 Apr 2015 15:20:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E5=BC=8F=E5=BA=93issue=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E5=9B=BE=E7=89=87=E6=98=BE=E7=A4=BA=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 484a3189c..fed074bdb 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -329,7 +329,7 @@ module ApplicationHelper imagesize = attachment.thumbnail(:size => "50*50") imagepath = named_attachment_path(attachment, attachment.filename) if imagesize - link_to image_tag(imagesize), + link_to image_tag(thumbnail_path(attachment,"50")), imagepath, :title => attachment.filename else