Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

This is an example application demonstrating Authlogic running on Rails 3.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 autotest
Octocat-spinner-32 config
Octocat-spinner-32 db
Octocat-spinner-32 doc
Octocat-spinner-32 lib
Octocat-spinner-32 public
Octocat-spinner-32 script
Octocat-spinner-32 spec
Octocat-spinner-32 vendor
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec
Octocat-spinner-32 Gemfile
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
Octocat-spinner-32 config.ru
README
This is an example application demonstrating Authlogic running on Rails 3.

It uses the email to login, you could also use a login field, if you like. I use a custom email validator (blatantly stolen from Ryan Bates) to validate email formats.

It also includes RSpec tests for the Authlogic controller.

To run the app:
bundle install
rake db:migrate
rails s
open http://localhost:3000/users/new

The root directory redirects to the login page.

To run the tests:
bundle install
rake db:migrate
rake db:test:prepare
rake

You can also run autotest for continual testing.

The version of Authlogic used here is a fork that is at:
git://github.com/odorcicd/authlogic.git branch 'rails3'

I am using this because I got a "to_key" error with the official repo.
Something went wrong with that request. Please try again.