Bootstrap-sass gem,“找不到发电机”

时间:2013-08-07 23:59:20

标签: bootstrap-sass

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

我错过了什么吗? 感谢

我的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'

1 个答案:

答案 0 :(得分:1)

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

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