rails 4 asset pipeline vendor assets images are not being precompiled

前端 未结 3 1979
失恋的感觉
失恋的感觉 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 17:07

    For my Rails 4.2.x project, I just moved the vendor images to vendor/assets/images and added this to application.rb:

    config.assets.precompile += %w(vendor/assets/images/*)
    

    Works fine on development and production.

提交回复
热议问题