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

后端 未结 5 746
隐瞒了意图╮
隐瞒了意图╮ 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 00:58

    It was a gem version conflict.

    Please use

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

    instead of

    gem 'sass-rails'

    Perform bundle update right after that. That should fix it

提交回复
热议问题