Ruby on Rails

Upgrade Rails version from 7 to 8

Useful links:

List versions of Ruby installed

$ mise list

Tool  Version           Config Source                          Requested
node  20.3.0 (missing)  ~/Sites/.tool-versions                 20.3.0
ruby  3.3.6             ~/Sites/career-pathways/.tool-versions 3.3.6

Set the Ruby version to use with new Rails (3.6.6)

mise use [email protected]

Check current version

$ ruby -v
ruby 3.3.6 (2024-11-05 revision 75015d4c1f) [x86_64-linux]

Change the version of Ruby and Rails in Gemfile

# Gemfile

ruby "3.3.6"

gem "rails", "~> 8.0"

Run bundle update to update the gems:

$ bundle update

... lots of output ...
← All posts Recent blog posts →