I followed this password_reset tutorial and was able to get it working. But there are a few things I don't like about it that I want to change.
I'd like it to say
password_reset
rather thanreset_passwords
in the url. Which I've managed to accomplish by renaming the controller and routing it inconfig/routes.rb
asmap.resources :reset_passwords, :as => 'reset_password', :only => [:index, :create, :edit, :update]
I'd like to have
domain.com/password_reset
to link to thepassword_reset
page, rather than havingdomain.com/password_reset/new
I was able to do this by changing it so that the view with the form where you enter your email is no longer "new" but "index".I'd like to have it so when the user is emailed with the
perishable_token
, it gives them a url likedomain.com/password_reset/perishable_token
ordomain.com/verify_password_reset/perishable_token
rather thandomain.com/password_reset/perishable_token/edit
.
Or at the least I'd like to have it asdomain.com/password_reset/perishable_token/verify
I cannot figure out how to get the third one to work.