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 Handling No Email Found When Resetting Passwords

Why does this work in context, but not with a direct link?

Here;s a theoretical question for you Railsians:

I'm working on ODOT, and if I click my Forgot Password link, it works just fine!

Alt text

But if I go directly to http://localhost:3000/password_resets, it gets angry with me:

Alt text

Can anyone explain what's happening here? My first inclination was to build a GET route...but then it seems that maybe that route wasn't meant to be here anyway.

Thanks!

1 Answer

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

Shouldn't it be /password_resets/new ? Also, the second image does not work.