What problem does it solve?
DHH Rails style provides a disciplined blueprint for writing Ruby and Rails code by emphasizing RESTful resources, slim controllers, and state as records, enabling maintainable and scalable Rails applications aligned with 37signals conventions.
Core Features & Use Cases
- RESTful resource design: map actions to resources via standard CRUD and nested routes.
- Controller and model discipline: lean controllers, concerns for shared behavior, and state recorded as separate models (e.g., Closure, Goldness) to improve auditability.
- Architecture and testing: multi-tenancy, Turbo/Stimulus front-end cues, Minitest with fixtures, and solid queue/cache choices to simplify infrastructure.
- Code review guidance: practical tips for applying DHH style during code reviews and general guidance.
Quick Start
Provide a step-by-step plan to apply DHH Rails style to an existing Rails project, focusing on RESTful routes, lean controllers, and stateful models.