Sha256: 4ae2a0c88340a462604bf47e7a70db55c37d4b7d25e5e04141ff14afbde1703f

Contents?: true

Size: 1.25 KB

Versions: 10

Compression:

Stored size: 1.25 KB

Contents

# JTRailsGeneratorUser

[![Gem Version](https://badge.fury.io/rb/jt-rails-generator-user.svg)](http://badge.fury.io/rb/jt-rails-generator-user)

JTRailsGeneratorUser is a generator for user authentication. You have the login and sign up page and password forgot feature.

## Installation

JTRailsGeneratorUser is distributed as a gem, which is how it should be used in your app.

Include the gem in your Gemfile:

    gem 'jt-rails-generator-user', '~> 1.0'

## Usage

You just have to use the generator with:

	rails g jt:user

Include `CurrentUser` in your `ApplicationController`:

```ruby
class ApplicationController < ActionController::Base
	include CurrentUser
	...
end
```

## What's does it generate?

- `User` model with only email, password and password_token (for password forgot feature)
- `SessionController` for the login
- `UsersController` for the sign up and password forgot feature
- `UserMailer` for sending password reset instructions 
- `CurrentUser` module which manage `current_user` variable and `require_user` filter 

## Author

- [Jonathan Tribouharet](https://github.com/jonathantribouharet) ([@johntribouharet](https://twitter.com/johntribouharet))

## License

JTRailsGeneratorUser is released under the MIT license. See the LICENSE file for more info.

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
jt-rails-generator-user-1.2.2 README.md
jt-rails-generator-user-1.2.1 README.md
jt-rails-generator-user-1.2.0 README.md
jt-rails-generator-user-1.1.3 README.md
jt-rails-generator-user-1.1.2 README.md
jt-rails-generator-user-1.1.1 README.md
jt-rails-generator-user-1.1.0 README.md
jt-rails-generator-user-1.0.7 README.md
jt-rails-generator-user-1.0.6 README.md
jt-rails-generator-user-1.0.5 README.md