- Put the
favicon.ico
under yourpublic/
folder - Add
<%= favicon_link_tag '/favicon.ico' %>
to your<head></head>
- Create your helper method for favicon_link_tag under a helpers folder in library with the following code:
Path => File actionpack/lib/action_view/helpers/asset_tag_helper.rb
Method: def favicon_link_tag(source='/favicon.ico', options={}) tag('link', { :rel => 'shortcut icon', :type => 'image/vnd.microsoft.icon', :href => path_to_image(source) }.merge(options.symbolize_keys)) end
- More info about favicon (click here)
Or a easier but not that professional way:
- Host your image on amazon S3 or any other by your preference
- Add the url of your image in a link
- Add the link to your head (under application.html.erb)
Example: <link rel=“shortcut icon” href=“https://s3-us-west- amazonaws.com/techwomencomingsoonpage/favicon.ico>