<%= link_to preview, :class => "fancybox" do %> <%= image_tag thumb, options.merge(:alt => preview) %> <% end %>