Project

signup

0.0
No commit activity in last 3 years
No release in over 3 years
This gem make authentication very simple
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 3.1.11, ~> 3.1
>= 5.0.0.1, ~> 5.0.0
 Project Readme

Signup

It is a simple but very powerful authentication and authorization plug-ins for rails.

Installation

Step 1: Add this line to your application's Gemfile:

gem 'signup'

And then execute:

$ bundle

Or install it yourself as:

$ gem install signup

Follow the step to install this plugins:

Step 2: For installing signup migration:

$ bundle exec rake signup:install

Step 3: Mount route, open config-> routes.rb and write below code:

mount Signup::Engine, at: '/'

Usage

From your controller, just use:

before_action :authorized?

This will prevent guest user to enter in your view.

Administrator

Username: admin@signup.com

Password: secret

Advanced

Make a dashboard under admin namespace in your project folder as like this code:

$ rails g contoller admin/dashboard index

And configure in your project routes as like:

namespace :admin do
    get 'dashboard', to:'dashboard#index'
end

For this, it will redirect dashboard after sign in.

Contributing

If you find any issue, please inform us in our github project repo

License

The gem is available as open source under the terms of the MIT License.