Follow Along as I Stumble on the Path to Learning RoR

Posts tagged “favicon

Where to Place Favicon for Rails App

To get the favicon to show in my Rails App, I named the favicon, favicon.ico, then:

  1. placed the image in the image directory for my app (app/assets/image)
  2. added this to the header:
<%= favicon_link_tag 'favicon.ico' %>

To create my favicon, I used http://www.favicon.cc

Advertisements

Favicon Tag

The tag for a favicon in rails is:

<%= favicon_link_tag %>

http://www.robzolkos.com/2011/02/favicon-in-rails/