From 9378d7e2139b1f3aa58a0f8aae648983c3a148bb Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Wed, 29 Jun 2011 23:46:58 +0200 Subject: sub suffices here --- actionpack/lib/action_view/helpers/asset_tag_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_view') diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb index c442c20acd..0c3f011c92 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb @@ -363,7 +363,7 @@ module ActionView end def image_alt(src) - File.basename(src, '.*').gsub(/-[[:xdigit:]]{32}\z/, '').capitalize + File.basename(src, '.*').sub(/-[[:xdigit:]]{32}\z/, '').capitalize end # Returns an html video tag for the +sources+. If +sources+ is a string, -- cgit v1.2.3