简体   繁体   中英

How can I view my HAML emails in the browser

I am currently writing some transaction-based emails in my Rails app for things like signup confirmation, etc. What I want to do however, is to be able to see what the email looks like in the browser or somewhere as I am making it. Since I am using HAML, I am unable to simply open the file in the browser.

How could I set it up so that I can view my HAML user_mailer code in the browser? If that is not possible, what alternative could I use just for emails?

以下宝石适用于我: https//github.com/ryanb/letter_opener

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM