Devise

Devise is a flexible authentication solution for Rails based on Warden.
authentication 51 0

Fork

Dave Kimura
Dave Kimura

May 08, 2020

Copy and paste this code into your terminal

DISCLAIMER: You should always review templates before running them. By running the template, you are agreeing to the terms of use.

The contents of this script as show. Any updates will be reflected in the below code and the snippet.

gem 'devise'

run 'bundle install'

if yes?("Do you want generate a User Model (first_name, last_name, admin:boolean)")
  generate(:model, 'user', 'first_name', 'last_name', 'admin:boolean')
end

# rails g devise:install
generate('devise:install')
generate(:devise, 'User')

environment 'config.action_mailer.default_url_options = { host: "localhost", port: 3000 }', env: 'development'

A place where you can thank the author, post problems, give constructive feedback, etc. Be nice!