title: Implementing :except in the routes for devise_for
body: <p>By using devise for user_auth it sets up some default routes (e.g. /user/edit and /user/sign_in). In routes.rb I have </p>
  
  <pre><code>devise_scope :user do
    get 'signin' =&gt; 'devise/sessions#new'
    etc.
  end
  </code></pre>
  
  <p>The problem is that both /signin and /user/sign_in work to link to the sign in page. I want to  so how make the /user/sign_in link inactive meaning it gives a 404 error when navigating to that page.</p>
  
  <p>My rake routes is:</p>
  
  <pre><code>    new_user_session GET    /users/sign_in(.:format)            {:action=&gt;"new", :controller=&gt;"devise/sessions"}
          user_session POST   /users/sign_in(.:format)            {:action=&gt;"create", :controller=&gt;"devise/sessions"}
  destroy_user_session DELETE /users/sign_out(.:format)           {:action=&gt;"destroy", :controller=&gt;"devise/sessions"}
         user_password POST   /users/password(.:format)           {:action=&gt;"create", :controller=&gt;"devise/passwords"}
     new_user_password GET    /users/password/new(.:format)       {:action=&gt;"new", :controller=&gt;"devise/passwords"}
    edit_user_password GET    /users/password/edit(.:format)      {:action=&gt;"edit", :controller=&gt;"devise/passwords"}
                       PUT    /users/password(.:format)           {:action=&gt;"update", :controller=&gt;"devise/passwords"}
  cancel_user_registration GET    /users/cancel(.:format)             {:action=&gt;"cancel", :controller=&gt;"registrations"}
     user_registration POST   /users(.:format)                    {:action=&gt;"create", :controller=&gt;"registrations"}
  new_user_registration GET    /users/sign_up(.:format)            {:action=&gt;"new", :controller=&gt;"registrations"}
  edit_user_registration GET    /users/edit(.:format)               {:action=&gt;"edit", :controller=&gt;"registrations"}
                       PUT    /users(.:format)                    {:action=&gt;"update", :controller=&gt;"registrations"}
                       DELETE /users(.:format)                    {:action=&gt;"destroy", :controller=&gt;"registrations"}
                signin GET    /signin(.:format)                   {:action=&gt;"new", :controller=&gt;"devise/sessions"}
               signout GET    /signout(.:format)                  {:action=&gt;"destroy", :controller=&gt;"devise/sessions"}
                signup GET    /signup(.:format)                   {:action=&gt;"new", :controller=&gt;"devise/registrations"}
               command GET    /command(.:format)                  {:action=&gt;"edit", :controller=&gt;"devise/registrations"}
  </code></pre>