From 805d9eda2888dd690bfbaf3f7abeaef52ca5b0f7 Mon Sep 17 00:00:00 2001 From: John Paul Fababaer <100891759+jpfababaer@users.noreply.github.com> Date: Sun, 3 Mar 2024 01:28:25 +0000 Subject: [PATCH 01/13] install devise and add root --- Gemfile | 2 + Gemfile.lock | 14 ++ app/views/layouts/application.html.erb | 4 + config/environments/development.rb | 1 + config/initializers/devise.rb | 313 +++++++++++++++++++++++++ config/locales/devise.en.yml | 65 +++++ config/routes.rb | 3 +- 7 files changed, 400 insertions(+), 2 deletions(-) create mode 100644 config/initializers/devise.rb create mode 100644 config/locales/devise.en.yml diff --git a/Gemfile b/Gemfile index bc0213aa6..e67ad0b29 100644 --- a/Gemfile +++ b/Gemfile @@ -3,6 +3,8 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" } ruby "3.2.1" +gem "devise" + gem "simple_form" # Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main" diff --git a/Gemfile.lock b/Gemfile.lock index a8196ad6f..21187bdf1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -76,6 +76,7 @@ GEM tabulo awesome_print (1.9.2) base64 (0.1.1) + bcrypt (3.1.20) better_errors (2.9.1) coderay (>= 1.0.0) erubi (>= 1.0.0) @@ -109,6 +110,12 @@ GEM irb (>= 1.5.0) reline (>= 0.3.1) debug_inspector (1.1.0) + devise (4.9.3) + bcrypt (~> 3.0) + orm_adapter (~> 0.1) + railties (>= 4.1.0) + responders + warden (~> 1.2.3) diff-lcs (1.5.0) diffy (3.4.2) domain_name (0.5.20190701) @@ -215,6 +222,7 @@ GEM faraday (>= 1, < 3) sawyer (~> 0.9) oj (3.13.23) + orm_adapter (0.5.0) pg (1.4.6) pry (0.14.2) coderay (~> 1.1) @@ -278,6 +286,9 @@ GEM regexp_parser (2.8.2) reline (0.3.9) io-console (~> 0.5) + responders (3.1.1) + actionpack (>= 5.2) + railties (>= 5.2) rexml (3.2.6) rspec (3.12.0) rspec-core (~> 3.12.0) @@ -357,6 +368,8 @@ GEM unf_ext unf_ext (0.0.9.1) unicode-display_width (2.4.2) + warden (1.2.9) + rack (>= 2.0.9) web-console (4.2.1) actionview (>= 6.0.0) activemodel (>= 6.0.0) @@ -398,6 +411,7 @@ DEPENDENCIES bootsnap capybara debug + devise dotenv-rails draft_matchers faker diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 9a595c93a..6ae1fedea 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -11,6 +11,10 @@
+ +<%= notice %>
+<%= alert %>
+ <%= yield %>