Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wishlist - Pretty URL for verification path and reset password path #31

Closed
Keytwo opened this issue Nov 10, 2009 · 2 comments
Closed

Wishlist - Pretty URL for verification path and reset password path #31

Keytwo opened this issue Nov 10, 2009 · 2 comments

Comments

@Keytwo
Copy link

Keytwo commented Nov 10, 2009

It would be nice to have pretty URL for recoverable and confirmable strategies routes.
As is:
"/users/verification?confirmation_token=MyHash"

Nice to have:
"/users/verification/MyHash"

so that confirmation_token is passed in route as param:
"/users/verification/:confirmation_token {:controller=>"users", :action=>"index"}"

Something like:
"map.connect 'users/verification/:confirmation_token', :controller => 'users'"

I don't know how to obtain this, or even if it is possible.
What do you think?

@josevalim
Copy link
Contributor

You should be able to obtain that declaring a named route after devise_for:

map.user_confirmation '/users/confirmation/:confirmation_token', :controller => 'confirmations', :action => 'show'

@josevalim
Copy link
Contributor

Sorry, Github sent the message without finishing. I just want to add that we have no plans in changing that in Devise. :)

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants