futura PRO said about 3 years ago on Hotwire Turbo Replacing Rails UJS :
This is a small thing, but ... if you always want the destroy link to perform the #confirm action every time (and I do), you can instead set the action in the Stimulus controller  with:

// confirmation_controller.js
  connect() {
    this.element.dataset.action = "confirmation#confirm"
  }

That allows us to drop the one line from the link in views/products/index.html.erb, so the data looks like:
data: {
        "turbo-method": :delete,
        controller: "confirmation",
        "confirmation-message-value": 'Are you sure?'
      }