Ruby Gem Devise

version 4.6.2

Message printed out after devise install command

rails generate devise:install
Some setup you must do manually if you haven't yet:

  1. Ensure you have defined default url options in your environments files. Here
     is an example of default_url_options appropriate for a development environment
     in config/environments/development.rb:

       config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }

     In production, :host should be set to the actual host of your application.

  2. Ensure you have defined root_url to *something* in your config/routes.rb.
     For example:

       root to: "home#index"

  3. Ensure you have flash messages in app/views/layouts/application.html.erb.
     For example:

       <p class="notice"><%= notice %></p>
       <p class="alert"><%= alert %></p>

  4. You can copy Devise views (for customization) to your app by running:

       rails g devise:views

Message printed out after device install command

rails generate device:controller [scope]

``` Some setup you must do manually if you haven’t yet:

Ensure you have overridden routes for generated controllers in your routes.rb. For example:

Rails.application.routes.draw do
  devise_for :users, controllers: {
    sessions: 'users/sessions'
end                                                                                                                             ```