title: Changing route from GET to Delete in RoR
body: <p><code>logout GET /logout(.:format) devise/sessions#destroy</code></p>
  
  <p>This is the route I am interested in.</p>
  
  <p>However, when I go to /logout, I get this error:</p>
  
  <p><code>No route matches [DELETE] "/logout"</code>, how do I change this route from <code>get</code> to <code>delete</code>?</p>
  
  <p>This is how my route is currently set up:</p>
  
  <p><code>get 'logout', to: 'devise/sessions#destroy', as: :logout</code></p>
  
  <p>and my link:</p>
  
  <p><code>&lt;%= link_to "Sign Out", logout_path, method: :delete %&gt;</code></p>