Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Generates common user authentication code for Rails/Merb, with a full test/unit and rspec suite and optional Acts as State Machine support built-in.
Ruby
Tree: 2366199ce5

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
generators/authenticated
lib
tasks
test
README
Rakefile
install.rb

README

Restful Authentication Generator
====

This is a basic restful authentication generator for rails, taken from acts as authenticated.  Currently it requires Rails 1.2 (or edge).

To use:

  ./script/generate authenticated user sessions

The first parameter specifies the model that gets created in signup (typically a user or account model).  A model with migration is created,
as well as a basic controller with the create method.

The second parameter specifies the sessions controller name.  This is the controller that handles the actual login/logout function on the site.

You can pass --skip_migration to skip the user migration.

From here, you will need to add the resource routes in config/routes.rb.  

  map.resources :users, :sessions

Generate your mailer:

  ./script/generate authenticated_mailer user
   
Something went wrong with that request. Please try again.