Realtime Apps with Hotwire & ActionMailbox
summary
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
chapters (9)
- 0:00Start
- 4:47Customer Support
- 5:08Models
- 6:50Streaming Changes with Hotwire
- 10:20Creating Posts with Hotwire
- 14:36Anatomy of an Email
- 21:32Routing To Mailboxes
- 23:49Sending Test Emails
- 25:14Processing Emails
related talks
40mAttraction Mailbox - Why I love Action Mailbox
34mAttraction Mailbox - Why I love Action Mailbox
34mAttraction Mailbox - Why I love Action Mailbox
43mRealtime Web Apps in the Wild
31mHotwire Cookbook: Common Uses, Essential Patterns & Best Practices
32mRevisiting the Hotwire Landscape after Turbo 8
36mThe pitfalls of realtime-ification
23mImplications of the Realtime Web
