title: Rails 4, Devise Routes
body: <p>I've created custom routes to route to the devise login and logout paths:</p>
  
  <pre><code>devise_scope :admin do
    get "logout" =&gt; "devise/sessions#destroy", as: :logout
    get "login" =&gt; "devise/sessions#new", as: :login
  end
  </code></pre>
  
  <p>This works. The only problem is that if the the login fails it redirects back to <code>admins/sign_in</code> instead of <code>/login</code>.</p>
  
  <p>Any ideas?</p>