Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Rails authentication from scratch
Ruby CSS JavaScript
branch: master
Failed to load latest commit information.
app Revert signed cookies...force_ssl does this for you
bin Pump up the ruby
config Enforce available locales
db Only use postgres for the database
doc In the beginning...
lib This is now a regular bash script
log Upgrade to Rails 3.1
public WIP User registers
script Only use postgres for the database
spec Forward to protected routes after authenticating
vendor Upgrade to Rails 3.1
.gitignore Correct paths to gitignore entries
.rspec WIP User registers
.ruby-version Pump up the ruby
.travis.yml Pump up the ruby
Gemfile.lock Bundle update Update README
Rakefile Upgrade to Rails 3.1 In the beginning...

Decent Authentication

Build Status Code Climate

Decent Authentication is a sample application that implements authentication in Rails 3.2 without the use of a third-party generator or engine. This is essentially a complete reproduction of Ryan Bates' Authentication from Scratch railscast with my addition of RSpec unit and integration tests. In addition to authentication, features include rememberable cookie, password reset, and forwarding to protected routes.

See the 'rails-3.0' tag for a legacy Rails 3.0 implementation.


  • Ruby 1.9+

Getting Started

# install gems, create database.yml config, and setup the database

# run the test suite
Something went wrong with that request. Please try again.