I\'m using rails 4 & ruby 1.9.3 for my application and fancybox2-rails gem, but there\'s a general problem with asset pipeline. If I run rake task
fancybox2-rails
rake task
It seems like images are included by default only from app/assets folder. So the solution is to add this line to config/application.rb
config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif)