Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Devise

⚠ If you are going to use devise we suggest you to send_emails first. ⚠

  • Add the following gem gem 'devise' and install it
bundle install
rails generate devise:install
  • update config/initializers/devise.rb and set
config.secret_key = ENV['DEVISE_SECRET_KEY']
config.mailer_sender = ENV['MAIL_SENDER']
config.pepper = ENV['DEVISE_PEPPER']
  • add the two variables to the .env.example
DEVISE_SECRET_KEY="rake secret"
DEVISE_PEPPER="rake secret"

Open a pull request! 🎉