diff options
author | Joseph Zidell <jzidell@websiteswithclass.com> | 2013-10-03 18:30:42 -0400 |
---|---|---|
committer | Joseph Zidell <jzidell@websiteswithclass.com> | 2013-10-03 18:30:42 -0400 |
commit | bf495069cbad76bebbe775fc4c0f8f88ddf29099 (patch) | |
tree | a104af8390e78185bb83fb83816cdbc162f4d072 /actionview/lib | |
parent | 58d64ddc4645479cff927eb3e72a871d22f3094a (diff) | |
download | rails-bf495069cbad76bebbe775fc4c0f8f88ddf29099.tar.gz rails-bf495069cbad76bebbe775fc4c0f8f88ddf29099.tar.bz2 rails-bf495069cbad76bebbe775fc4c0f8f88ddf29099.zip |
Fixed return strings in documentation
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/helpers/asset_tag_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionview/lib/action_view/helpers/asset_tag_helper.rb b/actionview/lib/action_view/helpers/asset_tag_helper.rb index 0400122717..e2430140c2 100644 --- a/actionview/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionview/lib/action_view/helpers/asset_tag_helper.rb @@ -225,13 +225,13 @@ module ActionView # ==== 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 |