문제

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.

도움이 되었습니까?

해결책

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') %>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top