HTML links only support GET by default. Rails UJS enables DELETE , PUT , and PATCH :
As of , the community has moved away from UJS. New applications now default to Turbo , part of the Hotwire suite, which provides similar asynchronous benefits but with a more modern architecture that requires even less manual JavaScript. Key differences in the new era: rails ujs
Triggers a native browser confirmation box before an action (like deleting a record) is executed. HTML links only support GET by default