将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?

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

Gemfile中其他由Rails生成的条目(例如sass-railscoffee-railsuglifier)如何?

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:

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

确认推文.