Asset filtered out and will not be served: add `config.assets.precompile

前端 未结 5 748
死守一世寂寞
死守一世寂寞 2020-12-08 13:17

I just migrated my Application to rails 4.1.0 from 4.1.rc2. Started getting these errors for my JS files

ActionView::Template::Err         


        
5条回答
  •  無奈伤痛
    2020-12-08 14:11

    Yes, reading the error on the browser, all I did was add the following line of code:

    Rails.application.config.assets.precompile += %w( depot.css )
    

    To the /config/initializers/assets.rb file and it worked.

提交回复
热议问题