I have the following on my application.html
. haml file...
= favicon_link_tag 'favicon.ico', :rel => 'shortcut icon'
So, this .ico
shows up on the Google Chrome tab on the default page (0.0.0.3000) of my web application but not in a sub page (0.0.0.0000/calapps).
This is really strange because when I go on Chrome developer tools I see the following line of HTML under the head tag.
<link href="/assets/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon">
You click on the href (hypertext reference) and the 32x32 icon shows up.
Update:
I've created a heroku that represents my application here.
Strangely, now the favicon doesn't even show up but http://calapps3.herokuapp.com/assets/favicon.ico exists. I have followed all the steps from the article "How to add favicon in rails 3.2" so I am confused as why this isn't working. Perhaps it is because I only added the favicon_link_tag in application.html.haml.