Real-time Rails with Sync
summary
Live demo shows a Rails app turned real time by adding chrismccord/sync, wiring browser websockets with faye + thin + foreman, and marking models with sync_all plus scoped sync partials and sync.touch post to propagate subresource changes. The claim is concrete: server-rendered partials push HTML to all clients without rewriting the frontend in heavy JS. It mostly works in real time on multiple browsers but is touchy and occasionally duplicates updates, used successfully for internal monitoring but needs careful scoping and permission handling.
AI-written summary · about
chapters (33)
- 0:00Introduction
- 1:18Demo
- 6:15Installing gems
- 7:00Adding JavaScript
- 10:15Foreman
- 10:40Pages
- 11:00Browser Refresh
- 11:45Register Models
- 12:05Sync All
- 12:50PostShow Action
- 14:35Sink Partial
- 15:50Sink New
- 16:25Sink Repository
- 17:00Testing
- 18:10Editing
- 19:25Edit Delete
- 21:30Scope Model
- 22:15scoping
- 22:50scope
- 23:35sink
- 24:20rails console
- 24:40jason
- 24:55sinkmodel
- 26:00post
- 26:35index page
- 29:00new post
- 30:25touch post
- 30:45comment update
- 31:25post update
- 31:45page not updating
- 32:05sinking the template
- 33:10creating a new post
- 34:15using it on internal apps








