0.01
No commit activity in last 3 years
No release in over 3 years
fucking favicons fucking suck
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

NAME

fucking_favicons.rb

TL;DR

  # install the fucking favicon gem

  gem 'fucking_favicons'
  # make a fucking favicon - pro-tip since this gem resizes it make it big = 256x256 ish
  
  # you can either create one in the default location, for example

  ~> cd app/assets/images/

  ~> curl -sO http://s3.amazonaws.com/drawohara.com.images/favicon.png

  # or you can configure the path where the generator will look
  
  
  <!-- drop it in yer fucking layoutz -->

  <head>

    <%= render :template => 'fucking_favicons' %>

  </head>

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'