Blog
45 articles
Rails 8 Custom Middleware Patterns
Build request throttling, request timing, and tenant detection middleware that handles real production scenarios.
Rails 8 Middleware: Custom Stacks Guide
Build custom middleware to handle cross-cutting concerns like timing, logging, and request modification in Rails 8.
Rails 8 Action Callbacks Deep Dive
Master controller callbacks with before_action, after_action, and around_action to write cleaner, DRYer Rails code.
Rails 8 JSON Columns with MySQL
Store flexible data in MySQL JSON columns while keeping Rails validations and query performance intact.
Rails 8 Full-Text Search with MySQL
Build powerful search functionality using MySQL's native full-text capabilities without adding external dependencies.
Rails 8 Query Objects That Scale
Extract complex database queries into testable, composable objects that keep models thin and logic reusable.
Rails 8 Request Variants for Device UIs
Serve different views to phones, tablets, and desktops without duplicating controllers or logic.
Rails 8 State Machines Without Gems
Build robust state machines in Rails 8 using pure Ruby and Active Record, no external dependencies required.
Rails 8 Optimistic Locking Guide
Prevent lost updates when multiple users edit the same record simultaneously using optimistic locking.
Rails 8 Pessimistic Locking Guide
Prevent race conditions and data corruption with database-level locks in Rails 8 and MySQL.
Page 1 of 5