aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorJoseph Zidell <jzidell@websiteswithclass.com>2013-10-03 18:30:42 -0400
committerJoseph Zidell <jzidell@websiteswithclass.com>2013-10-03 18:30:42 -0400
commitbf495069cbad76bebbe775fc4c0f8f88ddf29099 (patch)
treea104af8390e78185bb83fb83816cdbc162f4d072 /actionview
parent58d64ddc4645479cff927eb3e72a871d22f3094a (diff)
downloadrails-bf495069cbad76bebbe775fc4c0f8f88ddf29099.tar.gz
rails-bf495069cbad76bebbe775fc4c0f8f88ddf29099.tar.bz2
rails-bf495069cbad76bebbe775fc4c0f8f88ddf29099.zip
Fixed return strings in documentation
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/helpers/asset_tag_helper.rb6
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