Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Generates a basic authentication system based on Authlogic.
Ruby
Branch: master
Pull request Compare This branch is 1 commit ahead, 6 commits behind masone:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
generators/authlogic
lib
.gitignore
MIT-LICENSE
README.rdoc
Rakefile
init.rb
install.rb
uninstall.rb

README.rdoc

AuthlogicGenerator

Generates an authentication system with Ben Johnsons awesome Authlogic plugin/gem as seen in his basic tutorial at: www.binarylogic.com/2008/11/3/tutorial-authlogic-basic-setup

Yeah I know it is Authlogics intention not to have a generator. But I personally like to have a scaffold as a starting point for any further customization wherever possible.

What this generator creates for you

  • UserSession / User model and corresponding controller

  • Login form, views for the user management

  • Some nice looking routes

  • Basic test coverage

  • Support for Haml view templates

Installation

$ script/plugin install git://github.com/binarylogic/authlogic.git $ script/plugin install git://github.com/masone/authlogic_generator.git

Usage

  1. Run the generator

$ script/generate authlogic [–haml]

  1. Run the database migrations

$ rake db:migrate

  1. Have a look at the generated stuff…

Login is at: /login Login is at: /logout Signup is at: /signup Users account is at: /account

Notes

  • The plugin has been written for Rails 2.3

  • The generator will not run properly if you already have a user model

Copyright © 2009 Christian Felder (www.masone.ch)

Something went wrong with that request. Please try again.