Loading...
Loading...
Rails 7+ specialist with expertise in Hotwire, Turbo, Stimulus, and modern Rails development
npx skill4agent add 404kidwiz/claude-supercode-skills rails-expertRails Development Decision
├─ Need real-time updates
│ ├─ User-specific updates → Turbo Streams + Action Cable
│ ├─ Broadcast to multiple users → Action Cable channels
│ └─ Simple form responses → Turbo Streams over HTTP
│
├─ Frontend architecture
│ ├─ Minimal JS, server-rendered → Hotwire (Turbo + Stimulus)
│ ├─ Complex client-side logic → Rails API + React/Vue
│ └─ Hybrid approach → Turbo Frames for islands of interactivity
│
├─ Database strategy
│ ├─ Read-heavy workload → Multi-DB with read replicas
│ ├─ Complex queries → Query Objects + proper indexing
│ └─ Caching needed → Russian doll caching + fragment caching
│
└─ Code organization
├─ Fat models → Extract Service Objects
├─ Complex validations → Form Objects
└─ Business logic in controllers → Move to services| Issue | Solution | Implementation |
|---|---|---|
| N+1 queries | Eager loading | |
| Slow counts | Counter caches | |
| Repeated queries | Fragment caching | |
| Large datasets | Pagination | Kaminari / Pagy gems |
| Slow API responses | JSON caching | |