What problem does it solve?
This skill helps developers apply The Unofficial 37signals/DHH Rails style to Ruby and Rails projects, promoting clear domain models, RESTful architecture, and lightweight, testable code. It consolidates conventions around models, controllers, views, and architecture patterns to improve consistency and maintainability across Rails apps.
Core Features & Use Cases
- Enforces State-as-Records patterns (Closure, Goldness, NotNow) over booleans to capture when and by whom changes happened.
- Advocates for concerns-based controllers and model-centric authorization to keep business rules close to domain objects.
- Guides integration of Turbo Streams, Stimulus, and native CSS for interactive yet accessible UI without heavy JS frameworks.
- Use Case: A mid-size Rails team restructures a legacy app to reflect DHH patterns, enabling easier onboarding and more reliable auditing.
Quick Start
Instantiate a Rails project, then align controllers/models with the DHH approach by adding the recommended concerns and patterns; ask for a walkthrough on migrating an existing Cards feature to Closure-based state and Current attributes.