Rails 5 with Devise and Functionalities

  1. Install devise an and testing

https://github.com/plataformatec/devise

2. Add Admin Role model

https://github.com/plataformatec/devise/wiki/How-To:-Add-an-Admin-Role

3.  Add confirmation to user who can actively use the content on website

https://github.com/plataformatec/devise/wiki/How-To:-Add-:confirmable-to-Users

If you have already generated devise view’s referring in 1st point for the application you then only generate confirmation view By:

rails generate devise:views confirmable 

4. .  Require Admin to activate

https://github.com/plataformatec/devise/wiki/How-To:-Require-admin-to-activate-account-before-sign_in

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: