Skip to content

hirokitakeuchi/premailer-rails3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Premailer Rails 3 README

This gem is a no config solution for the wonderful Premailer gem to be used with Rails 3. It uses interceptors which were introduced in Rails 3 and tweaks all mails which receive the deliver method and adds a plain text part to it and inlines all CSS rules into the HTML part.

Currently it ignores any stylesheets linked within the email in favour of applying the stylesheet found at public/stylesheets/email.css or, if you use SASS on Heroku with Hassle, at tmp/hassle/stylesheets/email.css.

Installation

Simply add the gem to your Gemfile in your Rails project:

gem 'premailer-rails3'

About

Rails wrapper for the premailer gem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%