Back
Glyphicons for Rails
Other·Calvin Correli·Feb 9, 2012· 1 minutes
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
<%= glyphicon :remove %>
and
<%= 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!