This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sat Mar 28 13:17:13 -0700 2009 | |
| |
MIT-LICENSE | Sat Mar 28 13:17:13 -0700 2009 | |
| |
README.rdoc | Thu Oct 29 10:24:42 -0700 2009 | |
| |
Rakefile | Sat Mar 28 13:17:13 -0700 2009 | |
| |
generators/ | Wed Oct 28 19:52:22 -0700 2009 | |
| |
init.rb | Sat Mar 28 13:17:13 -0700 2009 | |
| |
install.rb | Sat Mar 28 13:17:13 -0700 2009 | |
| |
lib/ | Sat Mar 28 13:17:13 -0700 2009 | |
| |
uninstall.rb | Sat Mar 28 13:17:13 -0700 2009 |
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
The generator supports Erb and Haml, Test::Unit and Rspec.
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 (Rrb or Haml)
- Some nice looking routes
- Basic test coverage (Test::Unit or Rspec)
Installation
$ script/plugin install git://github.com/binarylogic/authlogic.git
$ script/plugin install git://github.com/masone/authlogic_generator.git
Usage
- Run the generator
$ script/generate authlogic [--rspec] [--haml] - Run the database migrations
$ rake db:migrate - 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). Thanks to Nick Plante (zapnap) for adding Haml and Rspec support!







