Contributions

Tutorial
The next release of Rails will ship with a CI template that will “work out of the box”… unless you’re using RSpec.
Tutorial
Learn how to authorize requests at the routing layer to improve security and ergonomics.
Tutorial
Learn how to strike a balance between flexibility and data integrity with a partial index and validations.
Tutorial
How do you manage queries when your Rails application isn’t the only thing reading your database?
Tutorial
I used to think the button element could only exist inside a form and that it did not support any attributes.

However, after working on a payment form for a client project, I realized that the button element is a robust, versatile and under utilized tool. Plus, knowing how to leverage forms and buttons will benefit you when using Turbo and Stimulus.
Tutorial
You don’t need a sophisticated caching mechanism to improve your application’s performance. All you need is a basic understanding of the HTTP specification.
Tutorial
Learn how to build a production ready Rack application without a framework like Rails or Sinatra.
Article
Rails writes a new cache entry based on the first request. But what happens when that request is from an admin?
Article
In this tutorial, we’ll explore how we can improve the interface of an Active Record Model by extracting existing logic into value objects by using Rails’ composed_of macro.
Article
Do you ever wonder why some classes print useful information, while others just return 0x0000000103f70c98?
Article
Learn about an unexpected limitation with this API and how to combat it universally.
Tutorial
In this tutorial, we will create a Ruby binstub that allows you to encrypt and decrypt files using Active Support’s EncryptedFile module. This script is particularly useful for those who need to protect sensitive information within their files.
Library
Keep your private notes in plain sight.
Tutorial
In this tutorial, you’ll learn how to write a test that clicks a link in a Rails mailer. This is particularly useful when testing emails with links that require unique tokens or may expire, such as password reset emails. We’ll cover the steps to create a helper method that uses Capybara to find and click the link in the email, allowing you to fully test the functionality of a password reset email.
Library
Art Vandelay is an importer/exporter for Rails 6.0 and higher.
Article
Time dependent tests are difficult to diagnose, and the symptoms don’t present themselves until it’s too late. This article will help you determine if your test suite is time dependent.
Article
Your team’s manual deployment process doesn’t have to be so manual. Here’s how we automated our team’s deployment process with a few lines of bash and basic Git knowledge.
Article
You probably use some type of error monitoring software to notify you when an exception is raised in your application, but are you being notified when there is an anomaly in user behavior?
Article
Learn how to query and group records by duration using Active Record.
Tutorial
Learn how to track user events without sacrificing privacy and performance.
Library
An authentication generator for Rails 7. Generate all the files needed to create a feature rich authentication system that you control. No configuration needed.
Tutorial
Rails ships with a setup script that automates bootstrapping a new application, but did you know that you're free to edit this script? In this quick tutorial, I'll show you how you can improve the default Rails setup script to create a more consistent and helpful onboarding experience for folks on your team.
Tutorial
Rails gives you all the tools you need to roll your own authentication system from scratch without needing to depend on a gem. The challenge is just knowing how to account for edge cases while being cognizant of security and best practices.
Tutorial
Do you need to create real-time features in your Rails app, but either can't use Turbo or don't want to use a front end framework like React? Fortunately older versions of Rails actually provide this functionality of the box. In this tutorial I'll show you how to create a single page app in Rails from scratch using remote elements and Stimulus.
Article
Are certain pages on your Rails app loading slowly? You might want to consider loading those requests in the background. It's easier than you think. In this tutorial, I'll show you how to lazy load content in Rails without Hotwire.
Tutorial
In this tutorial, we'll build a full-featured API in Rails with authentication.
Library
Automatically unsubscribe from emails in Rails.