I am interested in knowing if you got around this. I have a similar issue.
I wanted to have a link_to
that would update 2 other dom elements (not just one using the data-turbo-frame
helper) so I thought following this post that adding method: :get
would allow me to respond with
respond_to do |format|
format.turbo_stream
end
in the controller and the associated .turbo_stream.erb
view would allow some turbo_stream.update
to a bunch of elements but even though the turbo_link
is wrapped in a turbo_frame_tag
I still get text/html
for the request.format
.
Hence, it raises an error ActionController::UnknownFormat
edit: note that if I use a button_to
to post to the controller, of course it works