我正在尝试让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'
答案 0 :(得分:0)
我在运行bundle install之前在gem文件中添加了一个带有大写字母的错误。请注意,您添加的宝石没有任何大写字母。
应该是这样的:
gem 'bootstrap-sass'
不应该是这样的:
gem 'Bootstrap-sass'