I started a new rails project a few weeks ago with 3.2.3. Today I noticed that rails 3.2.4 and 3.2.5 have been released. I don't want to be behind already, so what's the best way to update my app to 3.2.5?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
- Read the release notes.
- Edit your Gemfile and run
bundle update
. - Update your
.rvmrc
file. (Optional) - Run your tests.
- Repeat as necessary.
One caveat is that if you do not explicitly specify gem versions in your Gemfile you may update a gem and introduce breaking changes; I have been bitten by this because of my Gemfile laziness.