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.

2025-07-02
ruby-on-rails
authentication
rspec
tests

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!

2025-05-17
ruby-on-rails
github
copilot
active-record
n+1

Preloading Nested Active Record Associations Syntax

Exploring a lesser known syntax for preloading nested Active Record associations.

2025-04-21
ruby-on-rails
preloading
active-record

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.

2025-02-07
ruby-on-rails
zero
postgresql functions
fx

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.

2025-02-04
ruby-on-rails
zero
postgresql
authentication
jwt

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.

2024-12-02
ruby-on-rails
authentication
oauth
google

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.

2024-11-21
ruby-on-rails
authentication
verification

Cache Bundle Install with BuildKit

How to use Buildkit's mount cache to reduce bundle install times during Docker builds.

release.com

2023-05-03

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.

2019-10-16
github
actions
ruby
gem
rspec
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.

2018-09-19
ruby-gems
ruby-on-rails
postgresql
database
docker
alpine-linux