我一直在关注 Michael Hartl 的“Ruby on Rails 教程”的更新版本,但在“git push heroku master”步骤中遇到了错误。GIT bash 产生的错误如下:
$git push heroku master
Counting objects: 70, done
...
Fetching gem metadata from https://rubygems.org/.........
Bundler could not find compatible version for gem "railties":
In Gemfile:
rails (= 3.2.3) ruby depends on
railties (= 3.2.3) ruby
jquery-rails (= 2.0.0) ruby depends on
railties (3.2.4.rc1)
另外,这是我使用的 Gemfile:
source 'https://rubygems.org'
gem 'rails', '3.2.3'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
group :development do
gem 'sqlite3', '1.3.5'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '3.2.4'
gem 'coffee-rails', '3.2.2'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platform => :ruby
gem 'uglifier', '1.2.3'
end
gem 'jquery-rails', '2.0.0'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'
我能找到的唯一调试说明涉及与教程中使用的版本不同的 Ruby 版本(即不是 3.2.3 的版本),因此非常感谢任何帮助。提前致谢!