0.0
No commit activity in last 3 years
No release in over 3 years
simple-login creates a basic and simple login system for Rails 3 apps. It is based on Railscasts Authentication from Scratch videos. Usage: create your rails app, then add this gem to your Gemfile. Finally, just type 'rails g simple_login'. All these routes are available: signup_path, login_path, logout_path, password_reset_path. Also, these methods are available: authorize and current_user. More info on github page.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

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