Software consulting and development in and around Oshawa, Durham Region and the Greater Toronto Area of Ontario
 

Ruby on Rails Favicon Plugin

Rails plugin for displaying favicon of your users service providers, or any other IP address

Installing

Install from within your Rails app

./script/plugin install http://favicon-image.googlecode.com/svn/trunk/favicon

Generate controller required in your app to show favicon images

./script/generate favicon

Add an entry to routes.rb

map.favicon "/favicon/:ip", :controller => "favicon", :action => "show", :requirements => {:ip => /.*\..*\..*/}

Examples

- Your providers favicon (might not be available)

<%= favicon_image(request.env['REMOTE_ADDR'], :size => "64x64") %>

- (65.55.208.48) Microsoft Spider

<%= favicon_image '65.55.208.48' %>

- (74.6.19.219) Yahoo Spider

<%= favicon_image '74.6.19.219' %>

- (24.193.192.220) Road Runner Client

<%= favicon_image '24.193.192.220' %>

Downloads

Get the Source from Google Code Hosting