Ruby on rails rails favicon图标适用于Firefox,但不适用于Chrome?

Ruby on rails rails favicon图标适用于Firefox,但不适用于Chrome?,ruby-on-rails,ruby,ruby-on-rails-3,hyperlink,favicon,Ruby On Rails,Ruby,Ruby On Rails 3,Hyperlink,Favicon,铁路代码(HAML): favicon.ico的 app/assets/images/favicon.ico 在Firefox中,它可以在本地和远程(生产中)工作,但在本地和远程Chrome中都没有显示图像 在任一浏览器中查看生产源将显示: <readyhead> ... <link href="/assets/favicon-2d05a112081aa8cc9c3caa576862077d.ico" rel="shortcut icon" type="image/vnd.

铁路代码(HAML):

favicon.ico的

app/assets/images/favicon.ico
在Firefox中,它可以在本地和远程(生产中)工作,但在本地和远程Chrome中都没有显示图像

在任一浏览器中查看生产源将显示:

<readyhead>
...

<link href="/assets/favicon-2d05a112081aa8cc9c3caa576862077d.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
...
</readyhead>
<readyhead>
...
<link href="/assets/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
...
</readyhead>

...
...
在任一浏览器中查看开发源将显示:

<readyhead>
...

<link href="/assets/favicon-2d05a112081aa8cc9c3caa576862077d.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
...
</readyhead>
<readyhead>
...
<link href="/assets/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
...
</readyhead>

...
...

我没有IE,但您可以在(我很好奇!)上看到它。

如果您使用chrome开发工具检查页面源代码,您可以看到chrome是如何解析HTML的:

<html>
  <head>
    <style type="text/css">
    </style>
  </head>
  <body>
    <readyhead>
      <!-- some more stuff ... -->

      <link href="/assets/favicon-2d05a112081aa8cc9c3caa576862077d.ico" rel="shortcut icon" type="image/vnd.microsoft.icon">
    </readyhead>

    <!-- some more stuff ... -->
  </body>
</html> 

问题是
不是有效的HTML元素,因此Chrome创建了一个单独的
元素作为替换,并假设
属于
标记


要解决此问题,必须将
重命名为
,然后Chrome应该正确解析HTML。这个元素应该是什么?它不是有效的HTML。

这是什么废话?用
替换它,您应该可以开始了。似乎有关联。