WebHostingHub Glyphs + Rails Build Status Gem Version endorse

With SASS and fonts from WebHostingHub Glyphs, webhostinghub-glyphs-rails is a gem to integrate WebHostingHub Glyphs to your Rails application.

It supports Rails 3.1.1 and older.

Installation

Add webhostinghub-glyphs-rails gem to your Gemfile:

    gem 'webhostinghub-glyphs-rails'

Then add the stylesheet to your Rails assets. The simplest way to apply Font Awesome site-wide is to add a require statement in app/assets/stylesheets/application.css:

    *= require webhostinghub-glyphs

That's it!

If you want to manage where the stylesheet will be used or just prefer SCSS, you can use @import in a SCSS file (e.g. a new file named libs.css.scss) to import the stylesheet:

    @import 'webhostinghub-glyphs';

(By default Rails will import all SCSS files in app/assets/stylesheets, you can change this behavior by modifying application.css.)

You can also use it with the SASS-converted Bootstrap gem, like bootstrap-sass or anjlab-bootstrap-rails. Just require/import webhostinghub-glyphs right after bootstrap.