Rails 4 favicon issue

Samuel picture Samuel · Mar 29, 2014 · Viewed 22.8k times · Source

Trying to add a favicon to my rails app, but doesn't seem to be working locally. Heres my code

Aplication.html.erb (in the head section)

<%= favicon_link_tag '/favicon.ico' %>

Note: Favicon has been saved within my asset/images folder and the icon is 64x64 pixel

Is there anything thats been done wrong here?

Thanks in advance

Answer

Ole Henrik Skogstr&#248;m picture Ole Henrik Skogstrøm · Mar 29, 2014

I think the address should be without the slash:

<%= favicon_link_tag 'favicon.ico' %>