mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #12788 from kylefritz/patch-1
rdoc: favicon source shouldn't begin with a slash to reference asset pipeline resource [ci skip] Conflicts: actionview/lib/action_view/helpers/asset_tag_helper.rb
This commit is contained in:
parent
0f5a36eb4c
commit
256ae7dec5
1 changed files with 2 additions and 2 deletions
|
@ -153,14 +153,14 @@ module ActionView
|
||||||
#
|
#
|
||||||
# ==== Examples
|
# ==== Examples
|
||||||
#
|
#
|
||||||
# favicon_link_tag '/myicon.ico'
|
# favicon_link_tag 'myicon.ico'
|
||||||
# # => <link href="/assets/myicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
|
# # => <link href="/assets/myicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
|
||||||
#
|
#
|
||||||
# Mobile Safari looks for a different <link> tag, pointing to an image that
|
# 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.
|
# 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:
|
# 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" />
|
# # => <link href="/assets/mb-icon.png" rel="apple-touch-icon" type="image/png" />
|
||||||
def favicon_link_tag(source='favicon.ico', options={})
|
def favicon_link_tag(source='favicon.ico', options={})
|
||||||
tag('link', {
|
tag('link', {
|
||||||
|
|
Loading…
Reference in a new issue