Glyphicons for Rails

I love using Jan Kovařík’s Glyphicons in my web app.

So much so that I’ve created a set of helpers to allow me to say things like

1
<%= glyphicon :remove %>

and

1
<%= link_to_glyphicon :remove, … %>

Here’s the code.

You’ll find:

  • A Rake task to create the required data structures.
  • The output of that Rake task (glyphicons.rb).
  • And finally the helper that allows me to say.

Feel free to use it.

Enjoy!