Posts tagged: #Rails

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

Adrian Marin

Export to CSV in Rails (the right way, at any scale)

Most Rails CSV tutorials stop at the toy version that buffers the whole file in memory. Here is the export that stays flat at any scale: streaming, background jobs, plus the Excel encoding and CSV injection details everyone skips.

Adrian Marin

Adrian Marin