There are two ways to render multiple turbo streams:
- via the controller rendering an array of streams
- via a view file that contains multiple stream templates
The other two files on this gist demonstrate both methods.
DHH considers the first one bad.
I kinda like the first one because I think it makes it a little more obvious what the controller code was responsible for passing to where.