I have been made a post model with picture upload and attached fancybox to display these pictures and this all works great.
Example:
<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>
But when I want to attach a fancybox to a single image, I have error:
The requested content cannot be loaded.
Please try again later.
Example:
<%= link_to (image_tag 'about_school/par_livu_skolu_1.jpg'), '/about_school/par_livu_skolu_1.jpg', :class => "fancybox"%>
So can anyone point to the problem? Thank you!