aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib
diff options
context:
space:
mode:
authorClaudio B <claudiob@users.noreply.github.com>2016-10-11 14:40:13 -0700
committerGitHub <noreply@github.com>2016-10-11 14:40:13 -0700
commit454460e87ea97ac4e8a5602112cb09ff3c3dcf42 (patch)
tree65c239b2d6cf27c725e5d7f18867f58188e64201 /actionview/lib
parentef074d685e0abda0412ec4330da5dce30927fed4 (diff)
parentafc1c62bb88ecd8ef539a2025c7bdfc5c93597be (diff)
downloadrails-454460e87ea97ac4e8a5602112cb09ff3c3dcf42.tar.gz
rails-454460e87ea97ac4e8a5602112cb09ff3c3dcf42.tar.bz2
rails-454460e87ea97ac4e8a5602112cb09ff3c3dcf42.zip
Merge pull request #26765 from claudiob/follow-26518
Docs: `tag` only accept attribute names as symbols
Diffstat (limited to 'actionview/lib')
-rw-r--r--actionview/lib/action_view/helpers/tag_helper.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/actionview/lib/action_view/helpers/tag_helper.rb b/actionview/lib/action_view/helpers/tag_helper.rb
index 24c6d03cd1..b625c1a194 100644
--- a/actionview/lib/action_view/helpers/tag_helper.rb
+++ b/actionview/lib/action_view/helpers/tag_helper.rb
@@ -139,6 +139,7 @@ module ActionView
# ==== Options
#
# Any passed options become attributes on the generated tag.
+ # You can only use symbols (not strings) for the attribute names.
#
# tag.section class: %w( kitties puppies )
# # => <section class="kitties puppies"></section>
@@ -200,7 +201,7 @@ module ActionView
# hash to +options+. Set +escape+ to false to disable attribute value
# escaping.
#
- # ==== Options
+ # ==== Options (Legacy syntax)
#
# You can use symbols or strings for the attribute names.
#
@@ -210,7 +211,7 @@ module ActionView
# HTML5 <tt>data-*</tt> attributes can be set with a single +data+ key
# pointing to a hash of sub-attributes.
#
- # ==== Examples
+ # ==== Examples (Legacy syntax)
#
# tag("br")
# # => <br />