Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Rails wrapper for the premailer gem
Ruby
branch: master

This branch is 1 commit ahead, 230 commits behind fphilipe:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
Gemfile
README.md
Rakefile
premailer-rails3.gemspec

README.md

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'
Something went wrong with that request. Please try again.