Last active
March 13, 2021 20:22
-
-
Save jasonfb/eb9cf8e90514dad1af0b98e01e9bce3d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- rails new TR002 | |
- cd TR002 | |
- then add to Gemfile + bundle install | |
gem 'devise' | |
gem 'turbo-rails' | |
- rails turbo:install | |
- rails generate devise:install | |
- rails generate model User | |
- as per devise install instructions: add to `config/environments/development.rb` | |
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 } | |
- add to routes.rb | |
root to: "home#index" | |
- add to app/views/layouts/application.html.erb | |
<p class="notice"><%= notice %></p> | |
<p class="alert"><%= alert %></p> | |
- rails new controller Home | |
- Add to ApplicationController | |
def after_sign_in_path_for(resource) | |
root_path | |
end | |
- DONE (see steps in symptom descriptions to reproduce) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment