Comments on a Model in Rails: building a real conversation feature
Most Rails comment tutorials stop at a polymorphic comments table. Here is the version that behaves like a conversation: delegated types for one extensible timeline, polymorphic authors, and real-time Turbo Streams, plus the broadcast gotcha nobody warns you about.
Adrian Marin