From 826fe1fc77280cf7814bf3088bfb6d2e34897ab3 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Thu, 24 Aug 2017 07:13:43 +0900 Subject: [PATCH] Remove `alt` text from `image_tag` example [ci skip] Follow up of #30213 --- actionview/lib/action_view/helpers/asset_tag_helper.rb | 6 +++--- actionview/lib/action_view/helpers/asset_url_helper.rb | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/actionview/lib/action_view/helpers/asset_tag_helper.rb b/actionview/lib/action_view/helpers/asset_tag_helper.rb index 4557c76dfebf8..bc2713d13e898 100644 --- a/actionview/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionview/lib/action_view/helpers/asset_tag_helper.rb @@ -239,11 +239,11 @@ def favicon_link_tag(source = "favicon.ico", options = {}) # Active Storage (images that are uploaded by the users of your app): # # image_tag(user.avatar) - # # => Tiger + # # => # image_tag(user.avatar.variant(resize: "100x100")) - # # => Tiger + # # => # image_tag(user.avatar.variant(resize: "100x100"), size: '100') - # # => Tiger + # # => def image_tag(source, options = {}) options = options.symbolize_keys check_for_image_tag_errors(options) diff --git a/actionview/lib/action_view/helpers/asset_url_helper.rb b/actionview/lib/action_view/helpers/asset_url_helper.rb index 4c131aa27ab5c..5ba2370efec5a 100644 --- a/actionview/lib/action_view/helpers/asset_url_helper.rb +++ b/actionview/lib/action_view/helpers/asset_url_helper.rb @@ -29,7 +29,7 @@ module Helpers # Helpers take that into account: # # image_tag("rails.png") - # # => Rails + # # => # stylesheet_link_tag("application") # # => # @@ -42,7 +42,7 @@ module Helpers # "assets0.example.com", ..., "assets3.example.com". # # image_tag("rails.png") - # # => Rails + # # => # stylesheet_link_tag("application") # # => # @@ -68,7 +68,7 @@ module Helpers # "http://assets#{Digest::MD5.hexdigest(source).to_i(16) % 2 + 1}.example.com" # } # image_tag("rails.png") - # # => Rails + # # => # stylesheet_link_tag("application") # # => # @@ -87,7 +87,7 @@ module Helpers # end # } # image_tag("rails.png") - # # => Rails + # # => # stylesheet_link_tag("application") # # => #