Skip to content

Instantly share code, notes, and snippets.

View francirp's full-sized avatar

Ryan Francis francirp

  • LaunchPad Lab
  • Chicago, IL
View GitHub Profile
@scottweisman
scottweisman / HTML Email in Rails
Last active August 29, 2015 13:58
HTML Email in Rails
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