In one paragraph, you write:
A feature that makes using Turbo Streams easier from the controller side is that Rails recognizes
turbo_stream
as a format in the same way it recognizeshtml
andjson
.
Then in the next:
When the request is a Turbo Stream, Rails will automatically look for a file named
<action>.turbo_stream.erb
, the way it does for HTML and JSON.
Notice in the first paragraph html
and json
appear as preformatted text, but in the second HTML and JSON appear as uppercase plaintext.