正式库issue界面图片显示路径错误

This commit is contained in:
guange 2015-04-24 15:20:10 +08:00
parent 12193a0d5d
commit 3299f7e726
1 changed files with 1 additions and 1 deletions

View File

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