ruby on rails - Devise custom after resetting password not redirecting -


class users::passwordscontroller < devise::passwordscontroller   skip_before_filter :require_no_authentication, only: [:edit]    def after_resetting_password_path_for(resource)     completed_reset_path     #super(resource)   end 

routes:

devise_for :users, controllers: { passwords: "users/passwords"} match "completed_reset", to: 'home#completed_reset', via: [:get] 

homecontroller:

class homecontroller < applicationcontroller   def index   end    def completed_reset   end end 

when reset password, redirected root instead of completed_reset_path . why happening?

maybe try:

get 'completed_reset', :to => 'home#completed_reset' 

instead of:

match "completed_reset", to: 'home#completed_reset', via: [:get] 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -