NAME
fucking_favicons.rb
TL;DR
# install the fucking favicon gem
gem 'fucking_favicons'
# make a fucking favicon
~> cd app/views/images
~> curl -sO http://s3.amazonaws.com/drawohara.com.images/favicon.png
<!-- drop it in yer fucking viewz -->
<%= render :template => 'fucking_favicons' %>
ABOUT
fucking_favicons.rb is the best gem in the world.
if you doubt this, read https://css-tricks.com/favicon-quiz/
fucking_favicons.rb is a rails engine, and rack middleware, which lets you provide a single favicon.png file for your project and let all the rest be dynamically generated on the fly. it also gives you a handy view that vommits this out:
the favicons are generated on the fly only once, and cached in memory. they are served with the last-modified time of the file on disk. so, this will peform just fine.
you can use this gem in rails, or a rack app
# for rack apps
use FuckingFavicons, :path => 'path/to/favicon.png'