Font Awesome 3.0 + SASS + Rails
With SASS and fonts from Font Awesome,
font-awesome-sass-rails is a gem to integrate Font Awesome to your Rails application.
It supports Rails 3.1.1 and older.
font-awesome-sass-rails gem to your
assets group in the
group :assets do gem 'sass-rails', " ~> x.x.x" gem 'coffee-rails', "~> x.x.x" gem 'uglifier' gem 'font-awesome-sass-rails' end
Then in your
@import 'bootstrap'; @import 'font-awesome';
This gem also includes
font-awesome-ie7, the stylesheet for IE7 support bundled with Font Awesome 3.0.
Use this stylesheet with conditional comment may be the best way to support IE7. But it can be difficult when it comes to assets pipeline. See this article on StackOverflow for a workaround: Using Rails 3.1 assets pipeline to conditionally use certain css
When you try this workaround, in your
Others are under MIT license.