Assets say “not precompiled” when they are precompiled

前端 未结 3 675
旧时难觅i
旧时难觅i 2020-12-31 05:48

Ok so, I\'m getting this error when I try to use the asset pipeline. I don\'t understand what\'s causing it.

Sprockets::Helpers::RailsHelper::AssetPaths::Ass         


        
3条回答
  •  执念已碎
    2020-12-31 06:40

    Add the .js to

    javascript_include_tag 'jquery.autocomplete.js'

    Seems like there is an missing functionality. When the filename has a period '.' in the name, the .js extension will not get added when looking into the digest.

    I did some debugging to Sprockets::Helpers::RailsHelper and it seems like digest_for methods gets the logical path without the .js.

提交回复
热议问题