High Rails

Use Hotwire for interactivity

Rule Description

For Rails 7+ applications, prefer Hotwire (Turbo + Stimulus) over React/Vue:
- Turbo Drive: Automatic AJAX page transitions
- Turbo Frames: Partial page updates without JavaScript
- Turbo Streams: Real-time updates over WebSocket
- Stimulus: Lightweight JavaScript for sprinkles of behavior

Only use a JavaScript framework when you need complex client-side state
management (e.g., collaborative editing, complex forms, offline support).

Included in Rulesets

Rails Standards
36 rules • 1 standard
View
Code Review Standards
58 rules • 0 standards
View

Add This Rule

Sign in to add this rule to your workspace

Sign in with GitHub

Details

Severity
High
Category
Rails
Used in
2 rulesets