Blog Posts
Controller Tests with RSpec and Rails 8 Authentication
How to authenticate a User in Controller tests when using RSpec and Rails 8 authentication.
GitHub CoPilot Instructions Can Catch Ruby On Rails N+1 Queries
A new feature for GitHub CoPilot, called Instructions, can be used to catch N+1 queries in Ruby on Rails applications. It can even leave comments on Pull Requests when it finds them!
Preloading Nested Active Record Associations Syntax
Exploring a lesser known syntax for preloading nested Active Record associations.
Using PostgreSQL Functions with Rocicorp's Zero and Ruby on Rails
Zero updates our database directly from the UI and we can't rely on callbacks like 'before_save' when using it. Let's explore different ways to manage data requirements.
Setting up Rocicorp's Zero with Ruby on Rails
Rocicorp's Zero is a sync engine to power extremely fast UI applications. I decided to pair it with Ruby on Rails and wanted to share how I got everything working.
Adding Google OAuth in Rails 8
Rails 8 added an authentication generator, but what if we want to use Google OAuth? I decided to implement it using the oauth2 gem and share what I learned.
Adding Email Address Verification in Rails 8
Rails 8 added an authentication generator, but it stopped short of creating User records and verifying their email address. I decided to build it and share what I learned.
Cache Bundle Install with BuildKit
How to use Buildkit's mount cache to reduce bundle install times during Docker builds.
release.com
GitHub Action to upload SimpleCov Coverage Results
I've been playing around with Actions ever since and one of my new projects, a Ruby Gem, didn't have any form of CI as of this morning. I set out to create an Action that would run the tests for the gem and produce coverage results via SimpleCov.
Update - Ruby Gem Dockerfile with Alpine Linux
I realized that we are always using Ruby Alpine images, and not the base Ruby image. I wanted to standardize the Dockerfiles I had written at work and here for the blog so I decided to look into what it would take to do so.