How to Update Ruby on Rails

Here are the basic steps you need to follow to update Ruby on Rails:

  • Find the latest point version here:
    • I had Rails 4.1.9 installed. I updated to Rails 4.1.13
  • Update your gemfile (gem 'rails', '4.1.13')
  • Run bundle update rails
  • Run rake rails:update
    • Press d to see how the rake task wants to update each file
    • Normally there are no changes that you want to accept in a point upgrade, so use n to decline most/all changes.
  • Follow the Ruby on Rails Upgrade Guide to see any manual changes you need to make or new features you want to take advantage of when updating to a new minor or major version of Rails