I''m sure I''m missing something rudimentary here... I seem to be having difficulty getting my favicon to appear. I have my favicon.ico in the public folder. I''ve configured my route.rb to route the intro page to my "home" controller. I''m using application.rb in my views to template the headers and footers. Here is the tag in my <head> in the application.rb: <link rel="shortcut icon" href="favicon.ico" /> Any ideas? Dave -- ~~~~~~~~~~~~~~~~~~~ David Andrew Thompson http://dathompson.blogspot.com
Most likely it is the missing / before the favicon.ico. The rel="shortcut icon" is for when it is dragged to the desktop. You will also need a rel="icon". Also, you should add a forward slash before the favicon.ico path to make it an absolute path. Try using these: <link rel="icon" href="/favicon.ico" type="image/ico" /> <link rel="shortcut icon" href="/favicon.ico" type="image/ico" /> Tom On 3/4/06, David Andrew Thompson <dandrew.thompson@gmail.com> wrote:> I''m sure I''m missing something rudimentary here... > > I seem to be having difficulty getting my favicon to appear. I have my > favicon.ico in the public folder. I''ve configured my route.rb to route > the intro page to my "home" controller. I''m using application.rb in my > views to template the headers and footers. > > Here is the tag in my <head> in the application.rb: > > <link rel="shortcut icon" href="favicon.ico" /> > > Any ideas? > > Dave > > -- > ~~~~~~~~~~~~~~~~~~~ > David Andrew Thompson > http://dathompson.blogspot.com > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Thanks...I changed the code to reflect the appropriate syntax, with my favicon.ico file in {root}/public , but still nothing. Then, I changed the target path to "images/favicon.ico" and stuck the favicon.ico file in the images folder of public so: <link rel="icon" href="images/favicon.ico" type="image/ico" /> {root}/public/images/favicon.ico It''s showing now. On 3/4/06, Tom Davies <atomgiant@gmail.com> wrote:> Most likely it is the missing / before the favicon.ico. > > The rel="shortcut icon" is for when it is dragged to the desktop. You > will also need a rel="icon". > > Also, you should add a forward slash before the favicon.ico path to > make it an absolute path. > > Try using these: > > <link rel="icon" href="/favicon.ico" type="image/ico" /> > <link rel="shortcut icon" href="/favicon.ico" type="image/ico" /> > > Tom > > On 3/4/06, David Andrew Thompson <dandrew.thompson@gmail.com> wrote: > > I''m sure I''m missing something rudimentary here... > > > > I seem to be having difficulty getting my favicon to appear. I have my > > favicon.ico in the public folder. I''ve configured my route.rb to route > > the intro page to my "home" controller. I''m using application.rb in my > > views to template the headers and footers. > > > > Here is the tag in my <head> in the application.rb: > > > > <link rel="shortcut icon" href="favicon.ico" /> > > > > Any ideas? > > > > Dave > > > > -- > > ~~~~~~~~~~~~~~~~~~~ > > David Andrew Thompson > > http://dathompson.blogspot.com > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- ~~~~~~~~~~~~~~~~~~~ David Andrew Thompson http://dathompson.blogspot.com
On Sat, 2006-03-04 at 13:21 -0800, David Andrew Thompson wrote:> I''m sure I''m missing something rudimentary here... > > I seem to be having difficulty getting my favicon to appear. I have my > favicon.ico in the public folder. I''ve configured my route.rb to route > the intro page to my "home" controller. I''m using application.rb in my > views to template the headers and footers. > > Here is the tag in my <head> in the application.rb: > > <link rel="shortcut icon" href="favicon.ico" /> >---- I didn''t have to do anything like that but I did have to close all copies of the web browser and restart the web server (or webrick as it were) and then it started working and I felt foolish when I asked the list and then later that day it started showing up. Craig
Hi David, I believe some versions of Internet Explorer expect the favicon.ico to be in the root of the website (so in your public folder). So, you may want to keep another copy there... or just move it to the root of the public folder. Tom On 3/4/06, Craig White <craigwhite@azapple.com> wrote:> On Sat, 2006-03-04 at 13:21 -0800, David Andrew Thompson wrote: > > I''m sure I''m missing something rudimentary here... > > > > I seem to be having difficulty getting my favicon to appear. I have my > > favicon.ico in the public folder. I''ve configured my route.rb to route > > the intro page to my "home" controller. I''m using application.rb in my > > views to template the headers and footers. > > > > Here is the tag in my <head> in the application.rb: > > > > <link rel="shortcut icon" href="favicon.ico" /> > > > ---- > I didn''t have to do anything like that but I did have to close all > copies of the web browser and restart the web server (or webrick as it > were) and then it started working and I felt foolish when I asked the > list and then later that day it started showing up. > > Craig > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
2 and a half years later. Well I just had this issue, and closing/reopening the browser made the favicon finally appear! If this can cave someone a few moments of frustration. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Fernando Perez wrote:> 2 and a half years later. Well I just had this issue, and > closing/reopening the browser made the favicon finally appear! > > If this can cave someone a few moments of frustration.Hmm, I tested on IE6, and the favicon won''t appear. Anyway even microsoft.com won''t display any favicon, so I won''t even bother. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---