Upgrade a Rails 7.0 App to Ruby 3.1.3 @StatelessCode
Upgrade a Rails 7.0 App to Ruby 3.1.3  @StatelessCode
Uploaded December 2022 | Updated November 2026, 3 days ago
In our previous video our build failed when we pushed to our branch. A new patch version of Ruby had been released, but we only had the minor version specified in our GitHub Actions build file. As a band-aid, we temporarily specified the patch version to get the build passing and then added an item to the backlog to upgrade Ruby.

Our system is Ubuntu 22.04 and we are using Ruby Version Manager (RVM) to manage our Ruby installations. We start by using `rvm install 3.1.3` to get the newest version installed (if you already have it installed on your system you can skip this step).

After that, we modify our Ruby version in the .ruby-version file and the Gemfile. We run a `bundle install` and re-run RuboCop and our full test suite to make sure nothing breaks before committing and pushing the code.

This video covers:
00:00:12 Introduction
00:02:07 Install Ruby 3.1.3 and make it the RVM default
00:03:54 Modify the Rails application to use Ruby 3.1.3
00:08:54 Use Ruby 3.1.3 in the other terminal and run the dev server to make sure it works
00:10:36 Run RuboCop and the full test suite
00:12:12 Review, commit, and push code
00:14:14 Delete some old branches from the local and remote repositories
00:15:48 Pull request and close issue.

#ruby #rails7 #rails #rubyonrails #rubygems #codecast #screencast #github #opensource #minitest #TDD #agile #NerdDice #DnD #roleplaying #softwaredevelopment #learntocode #tailwind #postgresql #rubocop #devise #turbo #controllers #views #selenium #capybara #systemtest #rubyversion #githubactions #rvm

This video is CC0 - No rights reserved. (YouTube doesn't allow this option when publishing.) All code is released under the UNLICENSE. Stateless Code denies the concept of "intellectual property". Copying is not stealing.
Upgrade a Rails 7.0 App to Ruby 3.1.3Populate the Project Backlog with Preliminary Features for the AppIntroduction to Agentforce: Is your Salesforce org ready?Fix a Bug Where System Test Emails Need More Time to CompleteFlesh Out the README for the ProjectThe Big End-to-End Setup of Mikes Development Environment on Ubuntu 24.04Inkscape 04: Convert Text to Vector for Cross-Platform UseInkscape 02: Change Text of an Existing SVG and Save As a New FileCreate a RubyGem 101: Retro on Version 0.5.0 and Patch ReleasesI Tried to Make a Cookie Monster Agent with AgentforceOverview of Authentication Epic and Choosing DeviseThe Path to Rails 8 - Upgrade Rails from 7.2 to 8.0
Stateless Code |

Upgrade a Rails 7.0 App to Ruby 3.1.3

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER