Cannot override Devise passwords controller
It should be possible to override the controller with the latest version of Devise (2.1.2).
class PasswordsController < Devise::PasswordsController def new super end def create ..override method here.. endend
And in config/routes.rb
:
devise_for :users, controllers: { passwords: 'passwords', .. }
You can check with rake routes
if Rails uses the derived PasswordsController
instead of the original one, the routes should for instance contain passwords#new
instead of devise/passwords#new
.
I think you forgot to mention your changes in the routes:
devise_for :users, :controllers => {:sessions => "sessions", :passwords => "passwords"}