undefined method `environment' for nil:NilClass when importing Bootstrap

后端 未结 5 720
隐瞒了意图╮
隐瞒了意图╮ 2020-12-08 00:32

I\'ve been trying to import Bootstrap into my rails app and I\'m not quite sure what\'s going wrong. I\'ve had it working before, but I did a \'bundle update\' and destroyed

5条回答
  •  囚心锁ツ
    2020-12-08 01:06

    I updated my project to rails 4.0.4 yesterday and was receiving the same error. Running 'bundle update' did nothing for me. uninstalling and in reinstalling sass-rails only installed version 4.0.1. I had to change my Gemfile from:

    gem 'sass-rails'
    

    to:

    gem 'sass-rails', '~> 4.0.2'
    

    Then, after running 'bundle update', rspec now works as it should.

提交回复
热议问题