将导轨更新为特定版本 [英] Update rails to a specific version
本文介绍了将导轨更新为特定版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将Rails更新为特定版本?如果我执行 gem update rails
,它会更新到版本3.2.6,这是最新版本。
我该怎么做?
解决方案
gem install rails --version = 3.2.3
或者使用捆绑器。写入Gemfile:
gem'rails','3.2.3'
并在rails根目录下执行
bundle install
How can I update Rails to a specific version? I have Rails 3.2.2 on my local machine, but I need to update to version 3.2.3.
If I execute gem update rails
, it will update to version 3.2.6, which is the latest.
How can I do this?
解决方案
gem install rails --version=3.2.3
Or use bundler. Write in Gemfile:
gem 'rails', '3.2.3'
and execute in rails root directory
bundle install
这篇关于将导轨更新为特定版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文