3
請幫助升級導軌。現在我有版本3.2.21。但我需要安裝版本4如何升級導軌?
我嘗試添加的Gemfile:
gem 'rails', '4.2.1'
,並執行:
bundle install
,但我收到以下錯誤消息:
[email protected] ~/rails/project1 $ bundle install
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "activesupport":
In snapshot (Gemfile.lock):
activesupport (3.2.21)
In Gemfile:
rails (= 4.2.1) ruby depends on
activesupport (= 4.2.1) ruby
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
ps:
[email protected] ~/rails/project1 $ bundle update
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "railties":
In Gemfile:
coffee-rails (~> 3.2.1) ruby depends on
railties (~> 3.2.0.beta) ruby
rails (= 4.2.1) ruby depends on
railties (4.2.1)
閱讀相關信息! *運行'bundle update'會從頭開始重建你的快照,只使用Gemfile中的gem,這可能會解決衝突。* –