Permalink
Browse files

favicon source shouldn't begin with a slash to reference assets pipel…

…ine resource
  • Loading branch information...
1 parent eca3fb1 commit edf7366316b0e586033efc823d1f0e2f88ded6f9 @kylefritz kylefritz committed Nov 6, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_view/helpers/asset_tag_helper.rb
@@ -154,14 +154,14 @@ def auto_discovery_link_tag(type = :rss, url_options = {}, tag_options = {})
#
# ==== Examples
#
- # favicon_link_tag '/myicon.ico'
+ # favicon_link_tag 'myicon.ico'
# # => <link href="/assets/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
#
# 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:
#
- # favicon_link_tag '/mb-icon.png', rel: 'apple-touch-icon', type: 'image/png'
+ # favicon_link_tag 'mb-icon.png', rel: 'apple-touch-icon', type: 'image/png'
# # => <link href="/assets/mb-icon.png" rel="apple-touch-icon" type="image/png" />
def favicon_link_tag(source='favicon.ico', options={})
tag('link', {

0 comments on commit edf7366

Please sign in to comment.