Giter VIP home page Giter VIP logo

authlogic_generator's Introduction

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 RSpec

  • 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 [–rspec] [–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)

authlogic_generator's People

Contributors

masone avatar zapnap avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.