Skip to content

Update Ruby on Rails

Update Ruby on Rails#

Check Versions#

ruby -v
gem -v
bundle -v
bin/rails -v

Update RubyGems#

gem update --system

Check Outdated Gems#

bundle outdated

Update Rails in a Project#

Set the target Rails version in Gemfile:

gem "rails", "~> 8.0"

Then update Rails and its dependencies:

bundle update rails
bin/rails app:update
bin/rails test

Review the generated config changes carefully before accepting them.

Install Rails Globally#

gem install rails --no-document
rails -v

Sources#