Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby User Authentication with Rails Password Resets and Testing Updating a User's Forgotten Password

Zachary Pearson
Zachary Pearson
9,578 Points

No route matches [POST] "/password_resets/(id)/"

Hi all,

I'm at the end of this series of videos and am having a little issue. When I run my rspec tests, everything passes, but when I try to reset a password myself I get the error message:

No route matches [POST] "/password_resets/(id)/"

I don't have a route for that in routes.rb - should I? I do have PATCH and PUT. It doesn't seem like the version made in the video had that. I do have:

resources :password_resets, only: [:new, :create, :edit, :update]

in routes.rb. Any ideas?

Thanks!

1 Answer

Zachary Pearson
Zachary Pearson
9,578 Points

Nevermind - this is solved in the subsequent video. Will leave this question up in case anyone happens to search for it in the future :)