title: Devise redirecting after errors
body: <p>On the sign up and forgot password views in Devise, if you get an error, it redirects you to the parent page.</p>
  
  <p>So on the sign up page (<code>/users/sign_up</code>), if you get an error, it redirects you to /users and shows the error.</p>
  
  <p>On the forgot password page (<code>/users/password/new</code>), if you get an error, it redirects you to <code>/users/password</code> and shows the error.</p>
  
  <p>How can I change it so it does the same thing as the sign in page, if there's an error, it stays on the same page and shows the error.</p>
  
  <p>I've looked through Devise and can't find where the redirect is.</p>
  
  <p>Here's my routes for Devise:</p>
  
  <pre><code>devise_for :users, :skip =&gt; [:sessions]
  as :user do
    get 'signin' =&gt; 'devise/sessions#new', :as =&gt; :new_user_session
    post 'signin' =&gt; 'devise/sessions#create', :as =&gt; :user_session
    get 'signup' =&gt; 'devise/registrations#new', :as =&gt; :new_user
    post 'signup' =&gt; 'devise/registrations#create', :as =&gt; :create_user_session
    delete 'signout' =&gt; 'devise/sessions#destroy', :as =&gt; :destroy_user_session
    get "/account" =&gt; "devise/registrations#edit"
  end
  </code></pre>