No commit activity in last 3 years
No release in over 3 years
JTRailsGeneratorUser is a generator for user authentication. You have the login and sign up page, password forgot feature.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

JTRailsGeneratorUser

Gem Version

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:

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

License

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