Override the to_param
method on your object to customize how Rails builds the id to put in the URL.
thoughtbot continues AI in Focus weekly livestreams starting February 2025. In the first session, Chad Pytel will teach you how to connect Deepseek to your Rails app.
Avoiding ReDoS attacks, using Active Resource in modern Rails, and how to improve flaky tests with Playwright.
You can get 90% of the way there with server-rendered templates and View Transitions.
Why should someone starting a new application in 2025 reach for Ruby on Rails?
Automatically infer the correct HTTP verb in your Rails forms by defining the persisted?
method.
Transitioning the codebase from using environment variables to Rails Credentials for Zero-Downtime Deploys.
Morphing is cool, but it can break your JavaScript. Here are some of the problems of using it and how to work around them.
How to check if you’re in a local Rails env and localizing models with Active Model.
We’re close to releasing Administrate v1. We’d love it if you could try it out!