Read more

Embed a favicon properly

Arne Hartherz
September 09, 2010Software engineer at makandra GmbH

The following Haml will do:

%head{ :profile => 'http://www.w3.org/2005/10/profile' }
  %link{ :href => image_path('favicon.ico'), :rel => 'icon', :type => 'image/vnd.microsoft.icon' }
Illustration book lover

Growing Rails Applications in Practice

Check out our e-book. Learn to structure large Ruby on Rails codebases with the tools you already know and love.

  • Introduce design conventions for controllers and user-facing models
  • Create a system for growth
  • Build applications to last
Read more Show archive.org snapshot

Note that while you can link to icon formats other than .ico, Internet Explorer is too stupid for that.

Posted by Arne Hartherz to makandra dev (2010-09-09 10:11)