From: Aidan Cornelius-Bell Date: Sun, 22 Sep 2024 23:16:08 +0000 (+0930) Subject: Added mail configuration X-Git-Url: https://gitweb.mndrdr.org/?a=commitdiff_plain;h=1a6a0106e862179b865dc556b158342e20c61aac;p=arelpe.git Added mail configuration --- 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).