1
當我試圖上傳我的代碼時,我總是收到版本錯誤。我看過其他帖子,但由於我從Cloud9開始工作,看起來這些並不正確。還使用命令時, 「紅寶石-v」 就說明2.2.2你的Ruby版本是1.9.3,但你的Gemfile指定了2.2.2
寶石下面文件:
source 'https://rubygems.org'
ruby '2.2.2'
gem 'rails', '4.2.1'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
# for Heroku deployment - as described in Ap. A of ELLS book
group :development, :test do
gem 'sqlite3'
gem 'byebug'
gem 'database_cleaner', '1.4.1'
gem 'capybara', '2.4.4'
gem 'launchy'
gem 'rspec-rails', '3.3.2'
gem 'ZenTest', '4.11.0'
end
group :test do
gem 'cucumber-rails', :require => false
gem 'cucumber-rails-training-wheels'
end
group :production do
gem 'pg'
end
# Gems used only for assets and not required
# in production environments by default.
#gem 'therubyracer', '~> 0.12.0'
gem 'sass-rails', '~> 5.0.3'
gem 'coffee-rails', '~> 4.1.0'
gem 'uglifier', '>= 2.7.1'
gem 'jquery-rails'
gem 'haml'
# Use unicorn as the web server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
我想在cloud9上你需要編輯'rails runner'來指向ruby 2.2,它現在可能指向1.9。 –