rails 4 asset pipeline vendor assets images are not being precompiled

前端 未结 3 1973
失恋的感觉
失恋的感觉 2020-12-04 16:12

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

3条回答
  •  攒了一身酷
    2020-12-04 16:45

    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)
    

提交回复
热议问题