Elusive Iconfont + SASS + Rails

With SCSS and fonts from Elusive Iconfont, elusive-iconfont-sass-rails is a gem to integrate Elusive Icons to your Rails application.

It supports Rails 3.1.1 and older.

Installation

Add elusive-iconfont-sass-rails gem to your assets group in the Gemfile:

group :assets do
  gem 'sass-rails', "  ~> x.x.x"
  gem 'coffee-rails', "~> x.x.x"
  gem 'uglifier'
  gem 'elusive-iconfont-sass-rails'
end

Then in your app/assets/stylesheets/application.css:

@import 'elusive-iconfont';

That's it!

You can also use it with the SASS-converted Bootstrap gem, like bootstrap-sass or anjlab-bootstrap-rails. Just import elusive-iconfont right after bootstrap:

@import 'bootstrap';
@import 'elusive-iconfont';

Thanks

Special thanks to https://github.com/littlebtc/font-awesome-sass-rails.