Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- routes.rb
- devise_controllers = {
- :omniauth_callbacks => 'users/omniauth_callbacks',
- :registrations => 'registrations',
- :confirmations => 'confirmations',
- :passwords => 'passwords'
- }
- devise_scope :user do
- get 'senha/redefinir' => 'devise/passwords#new', as: 'reset_password'
- post 'senha/redefinir' => 'devise/passwords#reset_password_instructions_sent', as: 'reset_password_instructions_sent'
- end
- class PasswordsController < Devise::PasswordsController
- protected
- def after_sending_reset_password_instructions_path_for(resource_name)
- puts ">>> PASSOU"
- reset_password_instructions_sent_path
- end
- def reset_password_instructions_sent
- puts "AE"
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement