From 1a6a0106e862179b865dc556b158342e20c61aac Mon Sep 17 00:00:00 2001 From: Aidan Cornelius-Bell Date: Mon, 23 Sep 2024 08:46:08 +0930 Subject: [PATCH] Added mail configuration --- app/views/posts/show.html.erb | 5 +---- config/environments/production.rb | 4 ++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/views/posts/show.html.erb b/app/views/posts/show.html.erb index d016f9d..739d9cf 100644 --- a/app/views/posts/show.html.erb +++ b/app/views/posts/show.html.erb @@ -3,10 +3,7 @@ <%= link_to "Back to posts", posts_path, class: "button" %>
-
- -

<%= notice %>

- +
<%= render @post %>
diff --git a/config/environments/production.rb b/config/environments/production.rb index 302f83b..01e9cea 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -77,6 +77,10 @@ Rails.application.configure do # Ignore bad email addresses and do not raise email delivery errors. # Set this to true and configure the email server for immediate delivery to raise delivery errors. # config.action_mailer.raise_delivery_errors = false + + config.action_mailer.default_options = { + from: "mind reader " + } # Enable locale fallbacks for I18n (makes lookups for any locale fall back to # the I18n.default_locale when a translation cannot be found). -- 2.39.5