mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
* A /
is required if you want to explicitly skip the assets directory. This is important because public/assets
is typically git-ignored.
* The asset id is no longer generated.
This commit is contained in:
parent
ad5c8b0d52
commit
9d7795638d
1 changed files with 3 additions and 7 deletions
|
@ -228,23 +228,19 @@ module ActionView
|
|||
)
|
||||
end
|
||||
|
||||
# Web browsers cache favicons. If you just throw a <tt>favicon.ico</tt> into the document
|
||||
# root of your application and it changes later, clients that have it in their cache
|
||||
# won't see the update. Using this helper prevents that because it appends an asset ID:
|
||||
#
|
||||
# <%= favicon_link_tag %>
|
||||
#
|
||||
# generates
|
||||
#
|
||||
# <link href="/favicon.ico?4649789979" rel="shortcut icon" type="image/vnd.microsoft.icon" />
|
||||
# <link href="/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
|
||||
#
|
||||
# You may specify a different file in the first argument:
|
||||
#
|
||||
# <%= favicon_link_tag 'favicon.ico' %>
|
||||
# <%= favicon_link_tag '/myicon.ico' %>
|
||||
#
|
||||
# That's passed to +path_to_image+ as is, so it gives
|
||||
#
|
||||
# <link href="/images/favicon.ico?4649789979" rel="shortcut icon" type="image/vnd.microsoft.icon" />
|
||||
# <link href="/myicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
|
||||
#
|
||||
# The helper accepts an additional options hash where you can override "rel" and "type".
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue