Return TurboStreamResponse automatically if needed
michael-yin opened this issue · 1 comments
michael-yin commented
Return TurboStreamResponse automatically if needed
michael-yin commented
After checking, it seems Rails respond_to
seems better option and the behavior is explicit, will close this issue.
respond_to do |format|
format.turbo_stream { render turbo_stream: turbo_stream_template }
end