Ruby on rails 引导sass未加载

Ruby on rails 引导sass未加载,ruby-on-rails,twitter-bootstrap,ruby-on-rails-4,sass,rubygems,Ruby On Rails,Twitter Bootstrap,Ruby On Rails 4,Sass,Rubygems,引导程序没有为我加载。我做错了什么 application.scss(完整的文件,其中没有其他内容) Gemfile 标题中的HTML显示(在开发模式下运行rails): 您是否尝试过: rails generate bootstrap:install static rails generate bootstrap:install less 根据您提供的信息,这有点难以追踪。您是否已将样式文件重命名为.scss扩展名?请确保遵循文档中的安装说明: 看起来你正在使用你不需要的额外宝石。如果您

引导程序没有为我加载。我做错了什么

application.scss(完整的文件,其中没有其他内容) Gemfile 标题中的HTML显示(在开发模式下运行rails):

您是否尝试过:

rails generate bootstrap:install static

rails generate bootstrap:install less

根据您提供的信息,这有点难以追踪。您是否已将样式文件重命名为.scss扩展名?请确保遵循文档中的安装说明:

看起来你正在使用你不需要的额外宝石。如果您使用的是alph 4版本的引导,那么您只需要在gem文件中使用它,而不需要版本3。确保在application.js文件中包含正确的依赖项:

//= require jquery
//= require bootstrap-sprockets
以及:

@import "bootstrap";
在application.scss文件中


您必须配置这些文件,然后确保重新启动应用程序才能进行更改。希望这有帮助

尝试
bootstrap/scss/bootstrap
是的,不起作用。为什么您包含3个不同的gem,只是
gem'bootstrap sass',“~>3.1.1”
对您有效?在未加载时不断添加它们。我从gem'bootstrap sass extras'开始,刚删除了bootstrap,但仍然不起作用。是的,再次运行了“rails生成bootstrap:install static”,但仍然不起作用。config.rb文件的路径是什么?我看到一个config.ru文件
rails generate bootstrap:install static

rails generate bootstrap:install less
//= require jquery
//= require bootstrap-sprockets
@import "bootstrap";