rails submission does not generate pop-up dialog
The following HTML:
Rails 7 button_to with a confirm message but processed as HTML
Rails 7 default all actions to TURBO_STREAM
processing.
Thus, if one wants to process as HTML, one would add a data attribute to a button_to tag with data: { turbo: false }
Rails ActionNotFound (The action ‘destroy’ could not be found …)
I’m following the Rails official Getting started guide and ran into this error when trying to delete:
How to debug rails to step through process of generating accept headers
Launching an action, the browser provide information on the accept headers, which in this probematic case renders: Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
when the desired effect if to have turbo inject text/vnd.turbo-stream.html
in that place.