aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2016-10-28 13:30:16 +0200
committerKasper Timm Hansen <kaspth@gmail.com>2016-10-28 13:32:44 +0200
commit3f2046f00ab0046f9252a5a7b52f617028bc4e0c (patch)
tree3c82ccba33e25e203965122da4894a2febaac46e
parent0c751ada1910af2ea9b835b9ecb45aa8df76b24d (diff)
downloadrails-3f2046f00ab0046f9252a5a7b52f617028bc4e0c.tar.gz
rails-3f2046f00ab0046f9252a5a7b52f617028bc4e0c.tar.bz2
rails-3f2046f00ab0046f9252a5a7b52f617028bc4e0c.zip
[ci skip] Revise TagHelper only permitting symbols doc.
Follow up to 454460e. Rebuild the sentence so the bit about only symbols allowed comes less out of left field and fits in better with the existing doc. Also remove the `(Legacy syntax)` construct. The sections are properly nested under `=== Options` with `====` and look fine on the generated API doc site.
-rw-r--r--actionview/lib/action_view/helpers/tag_helper.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/actionview/lib/action_view/helpers/tag_helper.rb b/actionview/lib/action_view/helpers/tag_helper.rb
index b625c1a194..306b71c85e 100644
--- a/actionview/lib/action_view/helpers/tag_helper.rb
+++ b/actionview/lib/action_view/helpers/tag_helper.rb
@@ -138,8 +138,7 @@ module ActionView
#
# ==== Options
#
- # Any passed options become attributes on the generated tag.
- # You can only use symbols (not strings) for the attribute names.
+ # Use symbol keyed options to add attributes to the generated tag.
#
# tag.section class: %w( kitties puppies )
# # => <section class="kitties puppies"></section>
@@ -201,7 +200,7 @@ module ActionView
# hash to +options+. Set +escape+ to false to disable attribute value
# escaping.
#
- # ==== Options (Legacy syntax)
+ # ==== Options
#
# You can use symbols or strings for the attribute names.
#
@@ -211,7 +210,7 @@ module ActionView
# HTML5 <tt>data-*</tt> attributes can be set with a single +data+ key
# pointing to a hash of sub-attributes.
#
- # ==== Examples (Legacy syntax)
+ # ==== Examples
#
# tag("br")
# # => <br />