This generator can add powerful authentication and authorization to a clean Rails application with a single command. Configures a Rails application for use with the authlogic and declarative_authorization gems, and generates all code (migrations, models, controller methods, routes, roles, seeds, etc.) required.
Gemfile gem 'authgen', '~> 0.0.1'
install gem install authgen