Asset Pipeline Undefined Variable SASS

后端 未结 2 1029
春和景丽
春和景丽 2020-12-11 07:42

I\'ve been trying to use http://startbootstrap.com/stylish-portfolio and after downloading all files and copying to the directory I\'m getting the following error on the par

2条回答
  •  [愿得一人]
    2020-12-11 08:09

    Try checking how you are precompiling assets. Check initializers/assets.rb (or it may be environments/production.rb for you) to make sure you are precompiling assets in a friendly way, like this:

    config.assets.precompile += ["*.js", "*.scss", "*.jpg", "*.png"]
    

    I was having this same error when it was

    config.assets.precompile += [/.*\.png/,/.*\.ico/,/.*\.jpg/,/.*\.js/,/.*\.scss/] 
    

提交回复
热议问题