The amazing Fontawesome packaged for Rails Asset Pipeline.
Add this line to your Rails application's Gemfile:
And then execute:
Just require fontawesome in your application.css
//= require 'fontawesome'
If you are using SASS
Add CSS classes to DOM elements e.g. class='fa fa-bookmark'. See all icons
Restart your Rails application.
Assets might get cached, removing
//=require "fontawesome", refreshing and adding it back in might help.
The gem follows Fontawesome versioning conventions e.g. if you need
4.0.3 version of fontawesome
it will be available in fontawesome-rails '~> 4.0.3.X'
- Fork it ( http://github.com/
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request