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 Displaying the Change Password Form

Is this an error ? @user = User.find_by(password_reset_token: params[:id] (password_reset_token: params[:id])

There is a missing Parentheses at the end of the following statement:

User.find_by(password_reset_token: params[:id]

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

That's what I thought, just wanted to be sure ;) Yeah, looks like a typo. I will tag Jason Seifer to let him know.

It might be a bug in that div class "teachers-notes markdown-zone" because i saw it again at:

http://teamtreehouse.com/library/user-authentication-with-rails/password-resets-and-testing/updating-a-users-forgotten-password

params.require(:user).permit(:password, :password_confirmation

params.require(:user).permit(:password, :password_confirmation)

1 Answer

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Good catch, all! I've fixed the typo. Thanks!