Codecast: Getting Started with Rails 7 20: Basic Auth Part 2 and Finish the Guide @StatelessCode
Codecast: Getting Started with Rails 7 20: Basic Auth Part 2 and Finish the Guide  @StatelessCode
Uploaded January 2022 | Updated September 2026, 2 weeks ago
This is the 20th video in the Getting Started with Rails 7 series. In this video Mike continues where he left off in video 19. He comes up with an admittedly hacky solution to get the existing system tests passing, by changing the articles show action to require basic auth and visiting the page twice.

After the tests are passing, he finishes up the guide, reviews The Ruby Toolbox, takes a quick look at the other guides available and talks about what's next.

This video covers:
00:00:10 Introduction
00:01:16 Continue troubleshooting basic auth browser tests
00:06:12 Experiment with actual application in Chrome
00:06:54 Continue troubleshooting browser tests*
00:32:07 All tests passing, but change requirements to require basic auth on articles show (not ideal). Review changes.
00:36:18 Final thoughts on the security section, and why not to use this solution on a real app.
00:39:42 Quick overview of the The Ruby Toolbox for evaluating gems you might want to include in your project
00:41:15 What's next? Quick overview of the other Rails guides available
00:43:34 The guide is done, but there are still a few videos left in the series
00:44:03 Commit and push the code

NOTE: As pointed out by Rails From Zero (youtube.com/channel/UCBIvferzfG3glF2iOz-oN9w) in the previous video YouTube comments, adding the debugger command to the in the test would have allowed us to pause the code and examine the current state (both in IRB and in the JavaScript console). This would have made debugging more efficient.

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.
Codecast: Getting Started with Rails 7 20: Basic Auth Part 2 and Finish the GuideUse Samba to Share Files on Ubuntu 24.04Export our draw.io Diagram so We Can Embed it in our GitHub WikiMediocre Karaoke - Dont Stop Me Now by QueenMandatory is PoisonUpdate Bundle to Clear Dependabot Alerts and Troubleshoot Build Dependency FailuresAdapt a Usability Interview Script for the Project and Fix Broken Wiki LinksCreate a RubyGem 106: Winter 2026 Maintenance Part 2 - Release 0.6.0Install an Android Emulator on Ubuntu 22.04Create a RubyGem 99: Backport Changes to Other Stable Branches and Update the CHANGELOGSet up GitHub Actions with Rails 7 and Get Working with PostgreSQLCodecast: statelesscode.com WordPress 17: Start Styling the Sidebar
Stateless Code |

Codecast: Getting Started with Rails 7 20: Basic Auth Part 2 and Finish the Guide

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER