这是我正在尝试的。
<%= image_tag 'favicon.ico', rel="icon" type="image/x-icon" %>
Try add
<%= favicon_link_tag 'favicon.ico' %>
in head
section in your application.html.erb
如何使用favicon_link_tag
帮助方法呢?
<%= favicon_link_tag 'favicon.ico' %>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.