title: Devise destroy session doesn't destroy the session?
body: <p>Really new to devise - it's very frustrating in all honesty...</p>
  
  <p>My user session isn't being destroyed.</p>
  
  <p>Here is the link in my navbar:</p>
  
  <pre><code>&lt;li&gt;&lt;%= link_to 'Logout', destroy_user_session_path, :method =&gt; :delete %&gt;&lt;/li&gt;
  </code></pre>
  
  <p>devise.rb has the :delete method configured:</p>
  
  <pre><code># The default HTTP method used to sign out a resource. Default is :delete.
    config.sign_out_via = :delete
  </code></pre>
  
  <p>Route is:</p>
  
  <pre><code>  destroy_user_session DELETE /users/sign_out(.:format)             sessions#destroy
  </code></pre>
  
  <p>Application controller says :</p>
  
  <pre><code>class ApplicationController &lt; ActionController::Base
    protect_from_forgery
  
    private
        def after_sign_out_path_for(resource_or_scope)
          root_path
        end
  </code></pre>
  
  <p>I click my sign out link and my console shows :</p>
  
  <pre><code>Started GET "/users/sign_out" for 127.0.0.1 at 2014-04-18 12:00:26 -0500
  Processing by UsersController#show as HTML
    Parameters: {"id"=&gt;"sign_out"}
  MONGODB (0.8ms) waittext_development['users'].find({:_id=&gt;BSON::ObjectId('53515685963e6507ad00003e')}).limit(-1)
  </code></pre>
  
  <p>It doesn't seem to be finding an active session (I've clicked it a dozen times in frustration), but the problem is the page I land out - UsersController#show - is not the page I've told it to route to.  It should be the root_path which is users#index</p>
  
  <p>So I was getting all these nil class errors on users#show because it was trying to render the default rails @user.name, etc. and @user isn't defined - I finally manually overrode the show action to simply render 'index' and I end up on my index page - BUT STILL - I'm seeing current_user.email printed here:</p>
  
  <pre><code>&lt;% if user_signed_in? -%&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;%= current_user.email %&gt;&lt;/li&gt;
      &lt;li&gt;&lt;%= link_to 'My info', edit_user_registration_path %&gt;&lt;/li&gt;
      &lt;li&gt;&lt;%= link_to 'Sign out', destroy_user_session_path %&gt;&lt;/li&gt;
    &lt;/ul&gt;
  </code></pre>
  
  <p>It is evaluating TRUE and I'm getting those three list items.  </p>
  
  <p>User <em>should not be signed in</em> because I just destroyed the session!</p>
  
  <p>What the heck?</p>