A simple login generator.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
Gemfile
LICENSE
README.md
Rakefile
simple_login.gemspec

README.md

SimpleLogin

A simple login generator. It is based on simple-login(developed by designium).

Installation

Add this line to your application's Gemfile:

gem 'simple_login', git: 'git@github.com:zernel/simple_login.git', branch: :develop

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. And 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