~/talk

Real-time Rails with Sync

Talkat RailsConf 2014 · 2014-04-22..04-25· [ruby-on-rails, web-platform]
slides:none on file

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

  1. 0:00Introduction
  2. 1:18Demo
  3. 6:15Installing gems
  4. 7:00Adding JavaScript
  5. 10:15Foreman
  6. 10:40Pages
  7. 11:00Browser Refresh
  8. 11:45Register Models
  9. 12:05Sync All
  10. 12:50PostShow Action
  11. 14:35Sink Partial
  12. 15:50Sink New
  13. 16:25Sink Repository
  14. 17:00Testing
  15. 18:10Editing
  16. 19:25Edit Delete
  17. 21:30Scope Model
  18. 22:15scoping
  19. 22:50scope
  20. 23:35sink
  21. 24:20rails console
  22. 24:40jason
  23. 24:55sinkmodel
  24. 26:00post
  25. 26:35index page
  26. 29:00new post
  27. 30:25touch post
  28. 30:45comment update
  29. 31:25post update
  30. 31:45page not updating
  31. 32:05sinking the template
  32. 33:10creating a new post
  33. 34:15using it on internal apps
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.