Simple helper for Font Awesome icons. Adds icon_tag helper method to your views. Follow examples at: http://fortawesome.github.io/Font-Awesome/examples/
size: "lg, 2x, 3x, 4x"spin:trueorfalsefixed-width(aliasfw):trueorfalseborder:trueorfalserotate: '90', '180', '270'flip: 'horizontal' or 'vertical'
<%= icon_tag('user', size: '2x') %>
# => <i class='fa fa-user fa-2x'></i>
Add this line to your application's Gemfile:
gem 'icon_tag'
And then execute:
$ bundle
Or install it yourself as:
$ gem install icon_tag
- Fork it
- 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