开发者

How to update a Rails 3 project to latest gems?

I created a new Ruby on Rails 3.0.1 project, and then globally updated gems to 3.0.3.

After some digging around, I ended up editing the project Gemfile to say "3.0.3" instead of "3.0.1", and then ran "rake rails:update", and now it appears that everything is up-to-date.

However, I can't find any references on the Internet for doing this with Rails 3, so I want to make sure this is the right way of doing things. Confirmat开发者_StackOverflowion appreciated. Thank you.


If you're changing the version in your Gemfile, you should be running bundle update so that all gems are updated to their latest versions specified by the Gemfile. rake rails:update is used for updating things such as the Prototype assets to the latest version.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜