diff options
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/asset_tag_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb index 6387b89a81..31e37893c6 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb @@ -215,11 +215,11 @@ module ActionView # Returns a string suitable for an html image tag alt attribute. # The +src+ argument is meant to be an image file path. - # The method removes the basename of the file path and the digest, + # The method removes the basename of the file path and the digest, # if any. It also removes hyphens and underscores from file names and # replaces them with spaces, returning a space-separated, titleized # string. - # + # # ==== Examples # # image_tag('rails.png') @@ -227,7 +227,7 @@ module ActionView # # image_tag('hyphenated-file-name.png') # # => <img alt="Hyphenated file name" src="/assets/hyphenated-file-name.png" /> - # + # # image_tag('underscored_file_name.png') # # => <img alt="Underscored file name" src="/assets/underscored_file_name.png" /> def image_alt(src) |