我正在从Michael Hartl的书“Ruby on Rails Tutorial”中学习Ruby on Rails。我必须指定不同gem的版本号,以便可以通过Heroku部署应用程序而不会发生冲突。但是当我运行bundle install
时,我收到了上面提到的错误消息。
Gemfile
看起来如何:
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '3.2.13'
# Use sqlite3 as the database for Active Record
group :development do
gem 'sqlite3', '1.3.5'
end
group :assets do
gem 'sass-rails', '3.2.4'
gem 'uglifier', '1.2.3'
gem 'coffee-rails', '3.2.2'
end
# Use jquery as the JavaScript library
gem 'jquery-rails', '2.0.0'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
gem 'spring'
end