I have have devise set up for my User model.
However, when I try to call the destroy session path:
link_to "Sign out", destroy_user_session_path
But when I click on the link it sends me to
.../users/sign_out
I get the following error, because sign_out is not valid user obviously:
ActiveRecord::RecordNotFound in UsersController#show
How do I get around this? I have tried this but it doesn't even seem to recognize it's n the routes.
devise_scope :users do
delete "user/signout" => "devise/sessions#destroy", :as => :destroy_session
end