Forum: Ruby on Rails trouble with shortcut icon

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bbdc298cd824989df148bc5312ab4bc3?d=identicon&s=25 chirag (Guest)
on 2007-08-02 00:10
(Received via mailing list)
I tried the following link to create a shortcut icon for my browser
tab

 <link rel="shortcut icon" href="/icon.gif" type="image/gif">

I tried putting icon.gif in the same directory as the .rhtml and also
in the public/images directory and neither works.

I also tried removing the slash as follows, but this only works when I
load the web page in the browser without going through Rails:

 <link rel="shortcut icon" href="icon.gif" type="image/gif">

I also tried other variations like this
 <link rel="shortcut icon" href="./icon.gif" type="image/gif">
 <link rel="shortcut icon" href=".\icon.gif" type="image/gif">

I'm developing on Windows.

Any ideas?

Thanks! Chirag
This topic is locked and can not be replied to.