installing rails 4:
creating a new rails application:
uncomment this line:
put devise on your Gemfile:
Running bundle command to install the gem:
Installing devise on rails app:
Creating a devise model with yours modules:
If you want, it’s possible to use Admin model.
Run the migrations and now we have devise configured:
That’s it.