Skip to content

Instantly share code, notes, and snippets.

Andrew Hendrie AndrewHendrie

Block or report user

Report or block AndrewHendrie

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View authentication_with_bcrypt_in_rails_4.md

#Simple Authentication with Bcrypt

This tutorial is for adding authentication to a vanilla Ruby on Rails app using Bcrypt and has_secure_password.

The steps below are based on Ryan Bates's approach from Railscast #250 Authentication from Scratch (revised).

You can see the final source code here: repo. I began with a stock rails app using rails new gif_vault

##Steps

View index.html
<button class="lines-button x2" type="button" role="button" aria-label="Toggle Navigation">
<span class="lines"></span
</button>
You can’t perform that action at this time.