This question already has an answer here:
- Adding icon to rails application 5 answers
<head>
<title>Application</title>
<% link { :rel => "shortcut icon", :href => "/images/favicon.ico" } %>
</head>
I can't see the image which i set, What's wrong with the above code? How can i run successfully?
generates
You may specify a different file in the first argument:
That’s passed to path_to_image as is, so it gives
The helper accepts an additional options hash where you can override “rel” and “type”.
For example, Mobile Safari looks for a different LINK tag, pointing to an image that will be used if you add the page to the home screen of an iPod Touch, iPhone, or iPad. The following call would generate such a tag:
Method Like
See doc: