Skip to content

Commit b4847f9

Browse files
committed
Configure development for letter opener
1 parent 23b25e1 commit b4847f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

config/environments/development.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343

4444
config.action_mailer.default_url_options = {host: "localhost", port: 3000}
4545

46+
# Preview email in the browser instead of sending
47+
config.action_mailer.delivery_method = :letter_opener
48+
config.action_mailer.perform_deliveries = true
49+
4650
# Print deprecation notices to the Rails logger.
4751
config.active_support.deprecation = :log
4852

0 commit comments

Comments
 (0)