aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorMarc Bowes <marcbowes@gmail.com>2011-11-28 11:55:14 +0200
committerMarc Bowes <marcbowes@gmail.com>2011-11-28 11:55:14 +0200
commit9d7795638da94a52e474f36e188ee8c2f80f6701 (patch)
tree3a01f6aec6529389f3163fc61bf217b9c7593658 /actionpack
parentad5c8b0d5228c32355621162e1be211208ae3f5c (diff)
downloadrails-9d7795638da94a52e474f36e188ee8c2f80f6701.tar.gz
rails-9d7795638da94a52e474f36e188ee8c2f80f6701.tar.bz2
rails-9d7795638da94a52e474f36e188ee8c2f80f6701.zip
* 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.
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_view/helpers/asset_tag_helper.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb
index 7d01e5ddb8..653e12c7d8 100644
--- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb
+++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb
@@ -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".
#