I am setting up devise auth gem on my app. In configuring the sign out link I am using
= link_to "Sign out", destroy_user_session_path, :method => :delete
this renders as
<a data-method="delete" href="/users/sign_out" rel="nofollow">Sign out</a>
When I run rake routes, the destroy session path is listed:
destroy_user_session_path DELETE /users/sign_out(.:format) devise/sessions#destroy
However, I am getting a No route matches [GET] "/users/sign_out"
when clicking the link...what am I doing wrong here? It doesn't seem to add up.