Project

iconoclast

0.0
No commit activity in last 3 years
No release in over 3 years
Rails icon library and helpers
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

iconoclast¶ ↑

The Iconoclast gem provides an easy way to install iconsets (currently the Famfamfam ‘silk’ and ‘flags’ iconsets are included).

Installation¶ ↑

The iconoclast gem is hosted on gemcutter.org, so you will first need to configure your gem system to pull from gemcutter:

$ gem install gemcutter
$ gem tumble

Once you have configured gemcutter:

$ gem install iconoclast

Usage¶ ↑

Install iconsets into your rails app’s public directory:

$ cd /path/to/railsapp
$ iconify

Running iconify without any arguments installs the famfamfam silk iconset by default. You can specify additional iconsets as well:

$ iconify --set=flags

Once your icons are installed, activate the helper methods by adding the following line to your application_controller.rb:

helper Iconoclast::IconHelper

Then use the icons in your views:

<%= icon 'name' %>
<%= icon 'name', 'alt text' %>
<%= icon 'name', 'alt text', { :border => 1 } %>

Copyright © 2009 Eric Dennis. See LICENSE for details.

This package also contains iconsets from Famfamfam: www.famfamfam.com/lab/icons/

The Famfamfam iconsets are provided under the Creative Commons Attribution 2.5 License (creativecommons.org/licenses/by/2.5/).