Devise Your Own Protection

Getting Started

gem 'devise'
bundle install
$rails generate devise:install
$rails generate devise user
$rails db:migrate

Devise Modules

class User < ActiveRecord::Base 
devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable, :confirmable, :lockable, :timeoutable
end

Default Modules

Optional Modules

Helper Methods

Devise Your Own Plan

I love traveling, music, and movies.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store