Devise

gem 'devise'
$ bundle install
$ rails generate devise:install
$ rails generate devise User
$ rails db:migrate
before_action :authenticate_user!
user_signed_in?
current_user