# ~/.railsrc --skip-jbuilder --javascript esbuild --css bootstrap
gem 'devise' run 'bundle install' generate('devise:install') generate(:devise, 'User') environment 'config.action_mailer.default_url_options = { host: "localhost", port: 3000 }', env: 'development' append_to_file 'app/views/layouts/_navigation_links.html.erb' do <<~'HEREDOC' <% if user_signed_in? %> <li class="nav-item me-4"> <%= link_to "My Account", edit_user_registration_path, class: "nav-link" %> </li> <li class="nav-item me-4"> <%= link_to "Sign Out", destroy_user_session_path, "data-turbo-method": :delete, class: "nav-link" %> </li> <% else %> <li class="nav-item me-4"> <%= link_to "Sign In", new_user_session_path, class: 'nav-link' %> </li> <% end %> HEREDOC end rake 'db:migrate' git add: '.' git commit: %( -m 'added devise')