david.dev
AI × Ruby on Rails
Latest Posts
Rails 8 Store Attributes Done Right
Store structured data in a single column without the complexity of JSON columns or extra tables.
Rails 8 Error Handling Done Right
Build robust error handling with custom exception classes, controller rescues, and user-friendly error pages.
Rails 8 Generators: Build Your Own
Stop repeating boilerplate. Custom Rails generators create consistent, project-specific code in seconds.
Rails 8 Attribute Normalization Guide
Stop scattering gsub and downcase calls everywhere. Rails 8 normalizes attributes elegantly at the model level.
Rails 8 Current Attributes Guide
Thread-safe request-scoped globals that simplify authentication, logging, and multi-tenancy without passing objects everywhere.
Rails 8 Default URL Options Guide
Configure URL generation across environments without hardcoding hosts in every mailer and controller.
My Recommended Stack
Ruby on Rails
The web framework that makes development enjoyable and productive
Hotwire
HTML over the wire - Turbo + Stimulus for reactive UIs without heavy JavaScript
MySQL
Battle-tested relational database with excellent Rails support
Cursor
AI-powered code editor that understands your entire codebase
Claude Code
AI coding assistant for the terminal - perfect for Rails development
Deplo.io
Swiss PaaS - deploy Rails apps with git push, 100% Swiss hosted