I have this routes.rb
:
devise_for :users, :path => '', path_names:
{ sign_in: "login", sign_out: "logout", sign_up: "registration"}
I changed sign_in
and sign_up
routes and if you go to sign_up
you will get 404 error, instead /registration
will work. What I want is to change and another routes like forgotten password in the same way. If I type in the console rake routes
, I see this for forgotten password:
new_user_password GET /password/new(.:format) devise/passwords#new
How can I do that, but and make default route to not work, just the new one?
Aucun commentaire:
Enregistrer un commentaire