This gem provides integration of embedding images and fonts into CSS files within the Rails asset pipeline. More about embedding assets and how it works, see the jammit documentation. This gem actually reuses code from that project.
Add the following to your Gemfile:
To enable embedding the assets set
MyProject::Application.configure do config.assets.embed_assets = true end
- Rails 3.1 and up only
- Only supports images and font in public/ directory (yet)
Thanks to documentcloud for creating jammit.
$ bundle install $ bundle exec rake test