title: Cannot override Devise passwords controller
body: <p>I need my Rails app to redirect to the home page after I submit the email to send me reset password instructions. Devise, by default renders the sign in form after entering the email.</p>
  
  <p>So I am trying to override the <code>Devise::PasswordsController</code> and change its <code>redirect_to</code>, but no success. In fact, I don't think Rails is even taking in my class. It could be a very stupid mistake but I have been at it for half a day with no success.</p>
  
  <p>I took the idea to override the passwords controller from <a href="https://github.com/plataformatec/devise/pull/1067" rel="nofollow noreferrer">here</a>.</p>
  
  <p>Here's my controller: </p>
  
  <pre><code>class PasswordsController &lt; Devise::PasswordsController
    protected
    def after_sending_reset_password_instructions_path_for(resource_name)
      root_url
    end
  end
  </code></pre>
  
  <p>Routes.rb:</p>
  
  <pre><code>devise_for :users, :controllers =&gt; {:passwords =&gt; "passwords"}
  devise_for :users, :controllers =&gt; {:registrations =&gt; "registrations"}
  devise_for :users, :controllers =&gt; {:sessions =&gt; "sessions"}
  </code></pre>
  
  <p>I would like to mention that I have overridden Devise's Registations and Sessions Controllers in the same app, and they seem to work fine.</p>