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 }
However, how does one, in the case of a delete action, generate a confirm message?
data: { turbo_confirm: t('promotion.delete_sure'), turbo: false }
data: { confirm: t('promotion.delete_sure'), turbo: false }
both of these do not go through the confirmation stage but execute directly (and process as HTML.