diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-08-23 11:51:34 -0400 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-08-23 11:51:34 -0400 |
commit | 783295f7065952e508a061c3d8acead16a9a39b1 (patch) | |
tree | db9e8d0a300394094b9d918e211d2e2469464a00 /guides/source | |
parent | abe9592beadf8f7146bc531b94aab2992eb5eeb4 (diff) | |
parent | 9a74c7b99bf0ac901f86bb38372a68e157cf9c73 (diff) | |
download | rails-783295f7065952e508a061c3d8acead16a9a39b1.tar.gz rails-783295f7065952e508a061c3d8acead16a9a39b1.tar.bz2 rails-783295f7065952e508a061c3d8acead16a9a39b1.zip |
Merge pull request #30213 from ckundo/ccundiff-alt-text-default
Do not generate default alt text for images
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/action_view_overview.md | 4 | ||||
-rw-r--r-- | guides/source/api_documentation_guidelines.md | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/action_view_overview.md b/guides/source/action_view_overview.md index e5f4e0ec30..ea72567c03 100644 --- a/guides/source/action_view_overview.md +++ b/guides/source/action_view_overview.md @@ -414,7 +414,7 @@ By default, Rails links to these assets on the current host in the public folder ```ruby config.action_controller.asset_host = "assets.example.com" -image_tag("rails.png") # => <img src="http://assets.example.com/images/rails.png" alt="Rails" /> +image_tag("rails.png") # => <img src="http://assets.example.com/images/rails.png" /> ``` #### auto_discovery_link_tag @@ -453,7 +453,7 @@ image_url("edit.png") # => http://www.example.com/assets/edit.png Returns an HTML image tag for the source. The source can be a full path or a file that exists in your `app/assets/images` directory. ```ruby -image_tag("icon.png") # => <img src="/assets/icon.png" alt="Icon" /> +image_tag("icon.png") # => <img src="/assets/icon.png" /> ``` #### javascript_include_tag diff --git a/guides/source/api_documentation_guidelines.md b/guides/source/api_documentation_guidelines.md index f4ecc9ea41..2c153d3783 100644 --- a/guides/source/api_documentation_guidelines.md +++ b/guides/source/api_documentation_guidelines.md @@ -350,7 +350,7 @@ into account, one such example is ```ruby # image_tag("icon.png") -# # => <img alt="Icon" src="/assets/icon.png" /> +# # => <img src="/assets/icon.png" /> ``` Although the default behavior for `#image_tag` is to always return |