0

我正在尝试让 Rails 启动并运行。我能够bundle install成功运行,但是当我尝试使用启动服务器时,rails s我收到以下消息:

Could not find bootstrap-sass-2.2.2.0 
Run `bundle install` to install missing gems.

这是我的 Gemfile:

source 'https://rubygems.org'

gem 'rails', '3.2.9'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'pg'
gem 'rails_admin'
gem 'devise'
gem 'cancan'
gem 'simple_form'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'

  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  # gem 'therubyracer', :platforms => :ruby

  gem 'uglifier', '>= 1.0.3'
    # The following three gems are used for Bootstrap
    # See: https://github.com/seyhunak/twitter-bootstrap-rails
    #NOTE: For therubyracer, run "gem install libv8" and "gem install therubyracer -v '0.11.0'"

end



gem 'therubyracer', '0.11.0beta8'
gem 'twitter-bootstrap-rails', :git => 'git://github.com/seyhunak/twitter-bootstrap-rails.git'
gem "less-rails"
gem 'bootstrap-sass', '~> 2.2.2.0'


gem 'jquery-rails'
4

1 回答 1

0

在运行 bundle install 之前,我在 gem 文件中添加了一个带有大写字母的 gem,这犯了一个错误。请注意,您添加的宝石没有任何大写字母。

应该是这样的:

gem 'bootstrap-sass'

不应该是这样的:

gem 'Bootstrap-sass'
于 2013-06-13T21:01:08.667 回答