simple-login is a Rails 3 login generator. It creates user class with signup, login, logout and password reset functions. Everything was created to be as simple as possible. See description for more info.
Ruby Perl Racket Shell
Latest commit b15713a Aug 30, 2012 @designium Versioning.
Permalink
Failed to load latest commit information.
lib Versioning. Aug 31, 2012
.gitignore Corrected the error for generator. It's simple_login. Aug 19, 2012
Gemfile Corrected the error for generator. It's simple_login. Aug 19, 2012
LICENSE
README.md Added code climate Aug 28, 2012
Rakefile Corrected the error for generator. It's simple_login. Aug 19, 2012
simple-login-0.0.9.gem
simple-login-0.1.1.gem changed the md page again. May 3, 2012
simple-login-0.1.2.gem Added installation message to the gem. May 3, 2012
simple-login-0.1.3.gem
simple-login-0.1.6.gem
simple_login.gemspec Versioning. Aug 31, 2012

README.md

SimpleLogin

Code Climate

simple_login creates a basic and simple login system for Rails 3 apps. It is based on Railscasts Authentication from Scratch videos.

Demo

http://gentle-samurai-9768.heroku.com/signup

Installation

Add this line to your application's Gemfile:

gem 'simple_login'

And then execute:

$ bundle

Or install it yourself as:

$ gem install simple_login

Usage

Once you've added the gem into your Gemfile, you only need to run the following command:

rails g simple_login

Rails will generate the login and view files.

Then run:

rake db:migrate

The user table will be created.

I also recommend activating the root_path.

To add the links to your app just add the following paths:

signup_path
login_path
logout_path
password_reset_path

Out of the box use

You can run

rails s

Open your browser and access http://localhost:3000

Then you can access the following routes:

http://localhost:3000/signup
http://localhost:3000/login
http://localhost:3000/logout
http://localhost:3000/password_reset

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request