Skip to content

Instantly share code, notes, and snippets.

View wendygwo's full-sized avatar

Wendy Gwo wendygwo

View GitHub Profile
@wendygwo
wendygwo / Adding 'Forgot Password' to login page.md
Last active August 8, 2024 19:08
How to add 'Forgot password' to a Rails app that's using bcrypt for authentication

Credit:

All the steps below came from watching the Railscast below:

http://railscasts.com/episodes/274-remember-me-reset-password

The steps below assumes that your app already has a user and user authentication set up.

  • Add to app/views/sessions/new.html.erb file
<p><%= link_to 'Forgot password?', new_password_reset_path %></p>