我已经制作了一个带有图片上传的帖子模型并附加了fancybox来显示这些图片,这一切都很好。
例子:
<div id="pictures_in_form"><%= link_to image_tag(asset.object.image.url(:thumb)), asset.object.image.url(:big), :class => "fancybox", :rel => "gallery" if asset.object.image? %></div>
但是,当我想将花式框附加到单个图像时,出现错误:
The requested content cannot be loaded.
Please try again later.
例子:
<%= link_to (image_tag 'about_school/par_livu_skolu_1.jpg'), '/about_school/par_livu_skolu_1.jpg', :class => "fancybox"%>
那么有人能指出问题所在吗?谢谢!