Rails 4 assets.precompile

前端 未结 2 1008
别那么骄傲
别那么骄傲 2021-02-05 19:25

This is a common question in here, but none of the solutions fixed my problem, so here it goes:

I am adding ace.js to my rails4 app, So what I did was

-         


        
2条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-05 20:23

    It is solved by adding :

    config.assets.precompile += %w( index.js )
    

    to config/application.rb. (not config/environments/production.rb)

    Tested in Rails 4.0 beta1.

提交回复
热议问题