title: Devise Resetting Password. Don't redirect, send back Ajax success?
body: <p>New to rails.  Got a question.</p>
  
  <p>After requesting to change your password using Devise, it wants to redirect to some path.  I have overridden this path using:</p>
  
  <pre><code>protected def after_sending_reset_password_instructions_path_for(resource_name)
    root_path
  end
  </code></pre>
  
  <p>However, this is really a stop-gap until I figure out how to get a JSON object to pass back to my Forgot Password page that now uses AJAX.  Is there a way to pass back a JSON object to the calling Forgot page after the resetting password instructions are sent instead of redirecting?</p>
  
  <p>EDITED:</p>
  
  <p>Added PasswordsController and what it looks like:</p>
  
  <pre><code>class Portal::PasswordsController &lt; Devise::PasswordsController
    def create
      super
    end
  end
  </code></pre>
  
  <p>Thanks again.</p>