I want to show image on click on it. I am using Paperclip to store images, and Fancy-box installed to process image display. But I get such error.
The requested content cannot be loaded.
Please try again later.
I searched in SO, and found similair question, Fancybox error in rails tried to change links like suggested but no results.
My application.js file looks like this.
//= require jquery
//= require jquery_ujs
//= require_tree
//= require fancybox
$(document).ready(function() { $("a.fancybox").fancybox(); });
My show view where I want to see the popup of the image (like in this example http://fancybox.net/ ), looks like this.
<a class="fancybox"><%= image_tag @product.photo.url(:thumb) %></a>
<%= @product.photo.url %>on target link. - rails_id