From 9d7795638da94a52e474f36e188ee8c2f80f6701 Mon Sep 17 00:00:00 2001 From: Marc Bowes Date: Mon, 28 Nov 2011 11:55:14 +0200 Subject: * 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. --- actionpack/lib/action_view/helpers/asset_tag_helper.rb | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'actionpack/lib') 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 favicon.ico 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 # - # + # # # 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 # - # + # # # The helper accepts an additional options hash where you can override "rel" and "type". # -- cgit v1.2.3