简体   繁体   English

如何在rails 3.2.8上升级到最新版本的ruby?

[英]How do I upgrade to the latest version of ruby on rails 3.2.8?

I've been away from programming for a few months but I'm back now and surprised to rails already at version 3.2.8. 我已经离开了几个月的编程,但我现在回来了,并且已经对版本为3.2.8的rails感到惊讶。 I feel slightly rusty and forgot how to successfully upgrade my ruby on rails version to the latest. 我觉得有点生疏,忘了如何成功地将我的ruby on rails版本升级到最新版本。

I'm currently using version 3.2.3 我目前正在使用3.2.3版

Is there a standard way of upgrading? 有标准的升级方式吗? I remember the last time I upgraded I had to modify some lines in the gemfile. 我记得上次升级时我必须修改gemfile中的一些行。 A google search didn't help so I would appreciate a solution from my favourite place thanks. 谷歌搜索没有帮助,所以我很感激我最喜欢的地方的解决方案谢谢。

Kind regards 亲切的问候

If you just want to install the latest rails gem 如果你只是想安装最新的rails gem

gem install rails -v 3.2.8

If it's a rails 3.2.3 app 如果它是一个rails 3.2.3应用程序

  1. Edit Gemfile , changing the line gem 'rails', '3.2.3' to gem 'rails', '3.2.8' 编辑Gemfile ,将行gem 'rails', '3.2.3'更改为Gemfile gem 'rails', '3.2.8'
  2. Run bundle update rails 运行bundle update rails

(from this so question ) (从这个问题

For each app you want to upgrade: 对于您要升级的每个应用:

Gemfile 的Gemfile

gem 'rails', '3.2.8'
# ...

Then on the command line: 然后在命令行上:

$ bundle update rails

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM