本文介绍了将Rails应用程序从3.2.6升级到3.2.8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个使用Rails 3.2.6
创建的Rails应用程序.现在3.2.8
已发布,这是我更新应用程序所需要做的所有事情吗?
I have a Rails app that was created using Rails 3.2.6
. Now that 3.2.8
has been released, is this all I need to do to update the app?
- 编辑
Gemfile
,将行gem 'rails', '3.2.6'
更改为gem'rails', '3.2.8'
- 运行
bundle update rails
- Edit
Gemfile
, changing the linegem 'rails', '3.2.6'
to gem'rails', '3.2.8'
- Run
bundle update rails
Gemfile
中其他由Rails生成的条目(例如sass-rails
,coffee-rails
和uglifier
)如何?
What about other Rails-generated entries in the Gemfile
, such as sass-rails
, coffee-rails
and uglifier
?
推荐答案
圣地亚哥·帕斯托里诺(Rails核心团队成员)的提示,他确认这是必需的:
Hat tip to Santiago Pastorino (Rails Core Team Member), who confirmed this is all that's required:
- 编辑
Gemfile
,将gem 'rails', '3.2.6'
行更改为gem 'rails', '3.2.8'
- 运行
bundle update rails
- Edit
Gemfile
, changing the linegem 'rails', '3.2.6'
togem 'rails', '3.2.8'
- Run
bundle update rails
这篇关于将Rails应用程序从3.2.6升级到3.2.8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!