This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Less painful html emails in Rails: | |
1. Install roadie and and mail_view gems | |
2. Setup MailPreview class in mailers directory & setup your variables (follow mail_view directions) | |
3. Download a mail template that's close to the design you want from Ink by Zurb http://zurb.com/ink/templates.php | |
4. Put the external stylesheet from the Ink template called 'email.css' in your stylesheets directory | |
5. Make sure the external stylesheet link tag goes to email.css <link rel="stylesheet" type="text/css" href="email.css" /> | |
6. Tweak the email.css stylesheet as needed, or add your own custom styles | |
7. Preview the email at http://localhost:3000/mail_view |