Devise sign out not signing out
问题 I'm having trouble signing out with devise. I am creating my signout link like this: <%= link_to "Sign out", destroy_user_session_path %> This was causing problems because the route could not be found so I added this to my routes.rb: get 'sign_out', :to => 'users/sessions#destroy', :as => :destroy_user_session Which does't cause any errors but also doesn't sign out, user_signed_in? still returns true. Any ideas? 回答1: try delete "logout" => "devise/sessions#destroy", :as => "logout" and <%=