How to upgrade a Rails 3 project to the latest gems?

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

After some digging, I finished editing the Gemfile project to say "3.0.3" instead of "3.0.1", and then ran "rake rails: update", and now everything seems to be -date.

However, I cannot find links on the Internet for this with Rails 3, so I want to make sure that this is the right way to do something. Confirmation has been appreciated. Thank.

+3
source share
1 answer

If you are changing the version in your Gemfile, you must run bundle updateso that all the gems are updated to the latest versions specified Gemfile. rake rails:updateused to update things like Prototype assets to the latest version.

+8
source

Source: https://habr.com/ru/post/1781360/


All Articles