1
4

2 回答 2

2

Replace the line

<a class="fancybox" link_to 'paint.name.url'> <%= image_tag  paint.name.url(:thumb)%></a>

with

<%= link_to image_tag(paint.name.thumb.url), paint.name.url, class: 'fancybox' %>
于 2013-06-24T17:09:31.470 回答
2
于 2013-06-24T17:12:54.537 回答