How to Review Emails with ActionMailer::Preview (Ruby on Rails 6)

Опубликовано: 17 Февраль 2026
на канале: Mike Rogers
1,481
28

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...
➡ FactoryBot: https://github.com/thoughtbot/factory...
➡ Source Code: https://github.com/MikeRogers0-YouTub...

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:   / mikerogers0  
➡ GitHub: https://github.com/mikerogers0
➡ YouTube:    / mikerogers0  
➡ BuyMeACoffee: https://www.buymeacoffee.com/MikeRogers0
➡ Dev.to: https://dev.to/mikerogers0

#RubyOnRails #WebDev #CodeNewbie