I've looked through all of the post on this problem, but none of the solutions seem to work for me. I hope I'm not missing something obvious, but I'm new to rails and nothing is working.
I get this error when trying to sign out with devise
No route matches [GET] "/users/sign_out"
Here's my header
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
This is the line that's giving me problems, but all my other lines work fine
<li><%= link_to 'Sign out', destroy_user_session_path, :method => :delete %></li>
And my application.js looks good
//= require jquery
//= require jquery_ujs
//= require turbolinks
Devise is setup to logout via
config.sign_out_via = :delete
rake routes gives me
Prefix Verb URI Pattern Controller#Action
new_user_session GET /users/sign_in(.:format) devise/sessions#new
user_session POST /users/sign_in(.:format) devise/sessions#create
destroy_user_session DELETE /users/sign_out(.:format) devise/sessions#destroy
user_password POST /users/password(.:format) devise/passwords#create
new_user_password GET /users/password/new(.:format) devise/passwords#new
edit_user_password GET /users/password/edit(.:format)
PATCH /users(.:format) devise/registrations#update
PUT /users(.:format) devise/registrations#update
DELETE /users(.:format) devise/registrations#destroy
links GET /links(.:format) links#index
POST /links(.:format) links#create
new_link GET /links/new(.:format) links#new
edit_link GET /links/:id/edit(.:format) links#edit
link GET /links/:id(.:format) links#show
PATCH /links/:id(.:format) links#update
PUT /links/:id(.:format) links#update
DELETE /links/:id(.:format) links#destroy
root GET / links#index
I'm not sure where the problem lies and don't know what else to try.