Skip to content

Getting Started with Rails 7 Episode 21: Upgrades, Bug Fixes, and Tweaks

This is the 21st video in the Getting Started with Rails 7 series. In this video Mike upgrades to Ruby 3.1.0 and Rails 7.0.1.

After the upgrade, he demonstrates the debugger command, makes some changes to get the browser tests to work with basic authentication without changing the requirements, converts the link_to helper to a button_to helper for the destroy action of the Posts parallel scaffold, and fixes a bug in the VisibleTest helper module.

This video covers:

  • 00:00:10 Introduction and take a look at the updates to the Getting Started guide
  • 00:03:33 Install Ruby 3.1.0 with RVM and make it the default
  • 00:05:13 Update Ruby version in the blog app and run a bundle update
  • 00:06:33 Review changes, run tests to validate nothing broken, and commit
  • 00:08:10 Explore and demonstrate the debugger command
  • 00:16:03 Modify articles controller and tests to no longer authenticate with show. Visit edit_article_path to establish authentication instead of article_path
  • 00:18:42 Fix lack of assertion in VisibleTestHelper module
  • 00:19:49 Convert link_to destroy back to button_to for Post scaffold
  • 00:25:25 Review, commit, and push code

The code for this series is open source and available on GitHub. View the commits for this video below:

Leave a Reply