After gem update: test fail with “Asset was not declared to be precompiled in production”

后端 未结 4 925
臣服心动
臣服心动 2020-12-24 10:41

Since I updated several gems all tests fail with the error:

ActionView::Template::Error: Asset was not declared to be precompiled in production.

A

4条回答
  •  北海茫月
    2020-12-24 11:26

    I had a similar error and had to edit my manifest.js file in order to get it to work.

    Edit /assets/config.manifest.js and then

    // manifest.js
    //= link_tree ../images
    //= link_tree ../stylesheets .css
    

    Then do a bundle exec rake assets:precompile

提交回复
热议问题