1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

rewords a little the RDoc of the tag helper

This commit is contained in:
Xavier Noria 2010-10-19 22:59:03 +02:00
parent ba1fb51fa5
commit 95d87823d4

View file

@ -24,16 +24,17 @@ module ActionView
# escaping. # escaping.
# #
# ==== Options # ==== Options
# You can use symbols or strings for the attribute names.
#
# Use +true+ with boolean attributes that can render with no value, like # Use +true+ with boolean attributes that can render with no value, like
# +disabled+ and +readonly+. # +disabled+ and +readonly+.
# #
# HTML5 <tt>data-*</tt> attributes can be set with a single +data+ key # HTML5 <tt>data-*</tt> attributes can be set with a single +data+ key
# pointing to a hash of sub-attributes. # pointing to a hash of sub-attributes.
# #
# Sub-attribute keys may be strings or symbols. To play nicely with # To play nicely with JavaScript conventions sub-attributes are dasherized.
# JavaScript conventions +dataset+ they will be dasherized so that a key # For example, a key +user_id+ would render as <tt>data-user-id</tt> and
# +user_id+ would render as <tt>data-user-id</tt> and thus accessed as # thus accessed as <tt>dataset.userId</tt>.
# <tt>dataset.userId</tt>.
# #
# Values are encoded to JSON, with the exception of strings and symbols. # Values are encoded to JSON, with the exception of strings and symbols.
# This may come in handy when using jQuery's HTML5-aware <tt>.data()<tt> # This may come in handy when using jQuery's HTML5-aware <tt>.data()<tt>