title: Rails 7 - link_to with method :delete still performs GET request
body: <p>I am trying to get this link to work, performing a <code>DELETE</code> request:</p>
  <pre><code>&lt;%= link_to &quot;Sign Out&quot;, destroy_user_session_path, method: :delete %&gt;
  </code></pre>
  <p>However when I click on it, my browser still performs a <code>GET</code> request (which fails for obvious reasons):</p>
  <p><a href="https://i.stack.imgur.com/dXbHM.png" rel="noreferrer"><img src="https://i.stack.imgur.com/dXbHM.png" alt="screenshot of browser network console" /></a></p>
  <p>I have read on multiple other forum posts, that this might have something to do with jquery not being included. They mentioned you would need to un-comment a line in <code>app/javascript/application.js</code>, however mine is pretty empty:</p>
  <pre><code>// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
  import &quot;@hotwired/turbo-rails&quot;
  import &quot;controllers&quot;
  </code></pre>
  <p>These forum posts were also quite old, so I suspect something has changed in the meantime.</p>