How to Install Devise



This content originally appeared on DEV Community and was authored by Maya Sheriff

Use Devise for Users

Install

rails generate devise:install

Change :delete to :getin devise file

# config/initializers/devise.rb, Line 269

config.sign_out_via = :get

Set a root route in routes

# config/routes.rb

root "boards#index"

Use our new generator supplied by the gem to create the User model and routes

rails generate devise user

Then Migrate

rake  db:migrate


This content originally appeared on DEV Community and was authored by Maya Sheriff