simple_login creates a basic and simple login system for Rails 3 apps. It is based on Railscasts Authentication from Scratch videos.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install simple_login
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.
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
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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Added some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request