0

当我尝试通过 rails g bootstrap:install 安装它时添加“bootstrap-sass”后,我收到以下消息。“找不到生成器引导程序:安装”

我错过了什么吗?谢谢

我的Gemfile如下:

source 'https://rubygems.org'
gem 'rails', '4.0.0'
gem 'sqlite3'
gem 'sass-rails', '~> 4.0.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 1.2'
group :doc do
  gem 'sdoc', require: false
 end
gem "rspec-rails", :group => [:development, :test]
gem "database_cleaner", :group => :test
gem "email_spec", :group => :test
gem "cucumber-rails", :group => :test, :require => false
gem "launchy", :group => :test
gem "capybara", :group => :test
gem "factory_girl_rails", :group => [:development, :test]
gem "devise"
gem "quiet_assets", :group => :development
gem "figaro", ">= 0.5.3"
gem "better_errors", :group => :development
gem "binding_of_caller", :group => :development
gem 'bootstrap-sass'
4

1 回答 1

1

bootstrap-sass 中没有包含生成器,这就是您收到错误的原因。

它使用资产管道使 Bootstrap 资产可用,因此不必将它们安装到您的应用程序中。您将需要@import "bootstrap";在您的应用程序 SCSS 文件的顶部。

于 2013-09-09T12:49:00.973 回答