Skip to content
Browse files

Fixed return strings in documentation

  • Loading branch information...
1 parent 58d64dd commit bf495069cbad76bebbe775fc4c0f8f88ddf29099 @josephzidell josephzidell committed Oct 3, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionview/lib/action_view/helpers/asset_tag_helper.rb
View
6 actionview/lib/action_view/helpers/asset_tag_helper.rb
@@ -225,13 +225,13 @@ def image_tag(source, options={})
# ==== Examples
#
# image_alt('rails.png')
- # # => <img alt="Rails" src="/assets/rails.png" />
+ # # => Rails
#
# image_alt('hyphenated-file-name.png')
- # # => <img alt="Hyphenated file name" src="/assets/hyphenated-file-name.png" />
+ # # => Hyphenated file name
#
# image_alt('underscored_file_name.png')
- # # => <img alt="Underscored file name" src="/assets/underscored_file_name.png" />
+ # # => Underscored file name
def image_alt(src)
File.basename(src, '.*').sub(/-[[:xdigit:]]{32}\z/, '').tr('-_', ' ').capitalize
end

0 comments on commit bf49506

Please sign in to comment.
Something went wrong with that request. Please try again.