title: Ruby on Rails - devise users/sign_out not working
body: <p>I'm using devise
  <code>sign_in</code> and <code>sign_up</code> urls are working</p>
  <p>but,
  when I try the url: <code>http://localhost:3000/users/sign_out</code></p>
  <p>it generates routing error</p>
  <pre><code>No route matches [GET] &quot;/users/sign_out&quot;
  </code></pre>
  <p>How can I fix this?</p>
  <h1>rake routes</h1>
  <pre><code>rake routes
          new_user_session GET    /users/sign_in(.:format)           {:action=&gt;&quot;new&quot;, :controller=&gt;&quot;devise/sessions&quot;}
              user_session POST   /users/sign_in(.:format)           {:action=&gt;&quot;create&quot;, :controller=&gt;&quot;devise/sessions&quot;}
      destroy_user_session DELETE /users/sign_out(.:format)          {:action=&gt;&quot;destroy&quot;, :controller=&gt;&quot;devise/sessions&quot;}
             user_password POST   /users/password(.:format)          {:action=&gt;&quot;create&quot;, :controller=&gt;&quot;devise/passwords&quot;}
         new_user_password GET    /users/password/new(.:format)      {:action=&gt;&quot;new&quot;, :controller=&gt;&quot;devise/passwords&quot;}
        edit_user_password GET    /users/password/edit(.:format)     {:action=&gt;&quot;edit&quot;, :controller=&gt;&quot;devise/passwords&quot;}
                           PUT    /users/password(.:format)          {:action=&gt;&quot;update&quot;, :controller=&gt;&quot;devise/passwords&quot;}
  cancel_user_registration GET    /users/cancel(.:format)            {:action=&gt;&quot;cancel&quot;, :controller=&gt;&quot;devise/registrations&quot;}
         user_registration POST   /users(.:format)                   {:action=&gt;&quot;create&quot;, :controller=&gt;&quot;devise/registrations&quot;}
     new_user_registration GET    /users/sign_up(.:format)           {:action=&gt;&quot;new&quot;, :controller=&gt;&quot;devise/registrations&quot;}
    edit_user_registration GET    /users/edit(.:format)              {:action=&gt;&quot;edit&quot;, :controller=&gt;&quot;devise/registrations&quot;}
                           PUT    /users(.:format)                   {:action=&gt;&quot;update&quot;, :controller=&gt;&quot;devise/registrations&quot;}
                           DELETE /users(.:format)                   {:action=&gt;&quot;destroy&quot;, :controller=&gt;&quot;devise/registrations&quot;}
      status_message_index GET    /status_message(.:format)          {:action=&gt;&quot;index&quot;, :controller=&gt;&quot;status_message&quot;}
                           POST   /status_message(.:format)          {:action=&gt;&quot;create&quot;, :controller=&gt;&quot;status_message&quot;}
        new_status_message GET    /status_message/new(.:format)      {:action=&gt;&quot;new&quot;, :controller=&gt;&quot;status_message&quot;}
       edit_status_message GET    /status_message/:id/edit(.:format) {:action=&gt;&quot;edit&quot;, :controller=&gt;&quot;status_message&quot;}
            status_message GET    /status_message/:id(.:format)      {:action=&gt;&quot;show&quot;, :controller=&gt;&quot;status_message&quot;}
                           PUT    /status_message/:id(.:format)      {:action=&gt;&quot;update&quot;, :controller=&gt;&quot;status_message&quot;}
                           DELETE /status_message/:id(.:format)      {:action=&gt;&quot;destroy&quot;, :controller=&gt;&quot;status_message&quot;}
                      home        /home(.:format)                    {:action=&gt;&quot;index&quot;, :controller=&gt;&quot;status_message&quot;}
                      root        /                                  {:controller=&gt;&quot;home&quot;, :action=&gt;&quot;index&quot;}
  </code></pre>
  <h1>routes.rb</h1>
  <pre><code>Microblog::Application.routes.draw do
    devise_for :users, :controllers =&gt; {:migrations =&gt; &quot;users/registrations&quot;}
    resources 'status_message'
    match 'home' =&gt; 'status_message#index'
    root :to =&gt; 'home#index'
  end
  </code></pre>