From c082c58fd6130f5326962841d78fdf642363a3a9 Mon Sep 17 00:00:00 2001 From: Jeff Bigler <63808+jbigler@users.noreply.github.com> Date: Thu, 29 Feb 2024 17:01:36 +0700 Subject: [PATCH] Install letter_opener gem for development --- Gemfile | 1 + Gemfile.lock | 7 ++++++- config/environments/development.rb | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 2f7371a..83e24f4 100644 --- a/Gemfile +++ b/Gemfile @@ -68,6 +68,7 @@ group :development do gem "brakeman" gem "bundler-audit" + gem "letter_opener" gem "rails_live_reload" gem "rubocop", ">= 1.25.1", require: false diff --git a/Gemfile.lock b/Gemfile.lock index 3b500f6..051fc44 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -161,6 +161,10 @@ GEM activesupport (>= 5.0.0) json (2.7.1) language_server-protocol (3.17.0.3) + launchy (2.5.2) + addressable (~> 2.8) + letter_opener (1.9.0) + launchy (>= 2.2, < 3) listen (3.9.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) @@ -371,7 +375,7 @@ GEM railties (>= 6.0.0) tailwindcss-rails (2.3.0-x86_64-linux) railties (>= 6.0.0) - thor (1.3.0) + thor (1.3.1) tilt (2.3.0) timeout (0.4.1) turbo-rails (2.0.4) @@ -420,6 +424,7 @@ DEPENDENCIES guard-minitest importmap-rails jbuilder + letter_opener litestack minitest-reporters pry-rails diff --git a/config/environments/development.rb b/config/environments/development.rb index 8d5a0f1..98d749d 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -6,6 +6,8 @@ Rails.application.configure do config.action_mailer.default_url_options = { host: "localhost", port: 3000 } + config.action_mailer.delivery_method = :letter_opener + config.action_mailer.perform_deliveries = true # Settings specified here will take precedence over those in config/application.rb. # In the development environment your application's code is reloaded any time