Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. Confirmation appreciated. Thank you.

like image 978
auspicacious Avatar asked Jan 20 '23 21:01

auspicacious


1 Answers

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.

like image 199
Ryan Bigg Avatar answered Jan 23 '23 11:01

Ryan Bigg