MikeRogers0/MikeRogersIO

View on GitHub
src/_videos/2021-01-20-how-to-review-emails-with-actionmailer-preview-ruby-on-rails-6.md

Summary

Maintainability
Test Coverage
---
layout: video
title: How to Review Emails with ActionMailer::Preview (Ruby on Rails 6)
youtube_id: 1HEClpa8A3M
published_at: '2021-01-20T16:12:33Z'
---
ActionMailer::Preview is such an under utilised feature of most of the Ruby on Rails projects I've worked on. It allows you to build mailers within your browser & it comes built in.

I'm a big fan of using this feature of sending lots of emails. On your local development environment it's located http://127.0.0.1:3000/rails/mailers .

# Sources

➡ Previewing Emails in the Ruby on Rails Guide: https://guides.rubyonrails.org/action_mailer_basics.html#previewing-emails
➡ FactoryBot: https://github.com/thoughtbot/factory_bot
➡ Source Code: https://github.com/MikeRogers0-YouTube/Action-Mailer-Preview

# Chapters

0:00 - What are we going to do?
0:10 - What is ActionMailer::Preview?
0:47 - Adding a preview
3:00 - Using FactoryBot for the Sample Data
3:35 - Thank you

# Follow Me Online

➡ Blog: https://mikerogers.io/
➡ Twitter: https://twitter.com/MikeRogers0
➡ GitHub: https://github.com/mikerogers0
➡ YouTube: https://www.youtube.com/c/MikeRogers0
➡ BuyMeACoffee: https://www.buymeacoffee.com/MikeRogers0
➡ Dev.to: https://dev.to/mikerogers0

#RubyOnRails #WebDev #CodeNewbie