Forum: Ruby on Rails trouble with shortcut icon

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
chirag (Guest)
on 2007-08-02 02:10
(Received via mailing list)
I tried the following link to create a shortcut icon for my browser

 <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.