Skip to content

Rails

Table of contents
Table of contents

Gem version

This rails helper lets you easily include svg octicons in your rails apps.

Install

  1. Add this to your Gemfile

    gem 'octicons_helper'
  2. Use this tag in your erbs

    <%= octicon "alert", :height => 32, :class => "right left", :"aria-label" => "hi" %>

We recommend including the CSS in the @primer/octicons npm module. You can also npm install that package and include build/build.css in your styles.

Edit this page on GitHub
1 contributorcolebemis
Last edited by colebemis on June 10, 2020