Rails Devise Confirmable - redirect -


the rails docs devise instructions how redirect incorrect:

https://github.com/plataformatec/devise/wiki/how-to:-add-:confirmable-to-users#redirecting-user

does know how this?

you need override devise confirmation controller. in routes.rb add line

devise_for :users, controllers: { confirmations: 'confirmations' } 

create file in , paste code

class confirmationscontroller < devise::confirmationscontroller    private    def after_confirmation_path_for(resource_name, resource)     your_new_after_confirmation_path #your path want land   end  end 

you may need restart server.

source : https://github.com/plataformatec/devise/wiki/how-to:-add-:confirmable-to-users#redirecting-user


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -