Octicons rails helper
A rails helper that inlines SVG octicons
This rails helper let's you easily include svg octicons in your rails apps.
Install
Add this to your
Gemfilegem 'octicons_helper'Use this tag in your erbs
<%= octicon "alert", :height => 32, :class => "right left", :"aria-label" => "hi" %>
We recommend including the CSS in the octicons_node module. You can also npm install that package and include build/build.css in your styles.
Documentation
For a full list of options available, see the octicons_gem documentation
License
(c) GitHub, Inc.
When using the GitHub logos, be sure to follow the GitHub logo guidelines.