Skip to content

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

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 in the YouTube comments for the video, 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.

The code for this series is open source and available on GitHub. View the commit for this video here.

Leave a Reply