Pergunta

I have replaced the file located at public/favicon.ico with my icon file. But when I load the page, I still see the default Refinery warped bumblebee icon.

I have done the various refresh tricks to ensure I'm not looking at a cache.

Looking at the source, the icon url is /assets/favicon.ico. When I load that url directly, I still see the old favicon.

I have also searched my project directory for other favicon files, but mine is the only one.

Foi útil?

Solução

Finally got it. I copied my favicon file into the app/assets/images folder.

Then I used this tag in my head partial:

<%= favicon_link_tag image_path('favicon.ico?v=2') %>
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top