rails
Installation
SKILL.md
Ruby on Rails Guide
Applies to: Rails 7+, Ruby 3.2+, Hotwire/Turbo, ActiveRecord, Action Cable
Core Principles
- Convention over Configuration: Follow Rails conventions -- naming, directory structure, RESTful routes
- Fat Models, Thin Controllers: Business logic in models and service objects, controllers handle request/response only
- DRY: Use concerns, partials, helpers, and shared services to avoid repetition
- RESTful by Default: Design resources around standard CRUD actions before adding custom routes
- Security by Default: CSRF, XSS protection, strong parameters, and parameterized queries are built in
When to Use Rails
Good fit: Full-stack web apps, MVPs, CMS, e-commerce, SaaS, Hotwire/Turbo SPA-like UX, API backends.
Consider alternatives: Minimal microservices (Sinatra, Hanami), heavy real-time streaming, strict type safety needs (Rust, Go).
Project Structure
Related skills