Skip to content

Instantly share code, notes, and snippets.

@jasonfb
Last active March 13, 2021 20:22
Show Gist options
  • Save jasonfb/eb9cf8e90514dad1af0b98e01e9bce3d to your computer and use it in GitHub Desktop.
Save jasonfb/eb9cf8e90514dad1af0b98e01e9bce3d to your computer and use it in GitHub Desktop.
- 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