~/talk

Realtime Apps with Hotwire & ActionMailbox

Talkat RailsConf 2021 · 2021-04-12..04-15· [ruby-on-rails, web-platform]
slides:none on file

Builds a customer‑support app that wires Hotwire Turbo streams to ActionMailbox so posts broadcast over websockets appear instantly. Uses Turbo Streams and model broadcast_to for append/replace, ActionText plus ActiveStorage for rich bodies and images, and ActionMailbox mailboxes that parse raw MIME, upload attachments as blobs and perform inline CID replacement. Saves and reuses message-id capture for threading, sends mail via a background job with deliver_now to record IDs, and notes the example org URL bug that requires default_url_options.

AI-written summary · about

  1. 0:00Start
  2. 4:47Customer Support
  3. 5:08Models
  4. 6:50Streaming Changes with Hotwire
  5. 10:20Creating Posts with Hotwire
  6. 14:36Anatomy of an Email
  7. 21:32Routing To Mailboxes
  8. 23:49Sending Test Emails
  9. 25:14Processing Emails
~/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.