diff options
author | Xavier Noria <fxn@hashref.com> | 2010-10-19 22:59:03 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-10-19 22:59:03 +0200 |
commit | 95d87823d4c9837e7a491fb4469869c5b2de5e05 (patch) | |
tree | b71c038d49f7abd0773e289259bd96bae0c6833c /actionpack/lib/action_view | |
parent | ba1fb51fa5bb843eadd7ff73b492d1ef4a7ec6c1 (diff) | |
download | rails-95d87823d4c9837e7a491fb4469869c5b2de5e05.tar.gz rails-95d87823d4c9837e7a491fb4469869c5b2de5e05.tar.bz2 rails-95d87823d4c9837e7a491fb4469869c5b2de5e05.zip |
rewords a little the RDoc of the tag helper
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/tag_helper.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/actionpack/lib/action_view/helpers/tag_helper.rb b/actionpack/lib/action_view/helpers/tag_helper.rb index 2f29c8f0e6..ee51617a2b 100644 --- a/actionpack/lib/action_view/helpers/tag_helper.rb +++ b/actionpack/lib/action_view/helpers/tag_helper.rb @@ -24,16 +24,17 @@ module ActionView # escaping. # # ==== Options + # You can use symbols or strings for the attribute names. + # # Use +true+ with boolean attributes that can render with no value, like # +disabled+ and +readonly+. # # HTML5 <tt>data-*</tt> attributes can be set with a single +data+ key # pointing to a hash of sub-attributes. # - # Sub-attribute keys may be strings or symbols. To play nicely with - # JavaScript conventions +dataset+ they will be dasherized so that a key - # +user_id+ would render as <tt>data-user-id</tt> and thus accessed as - # <tt>dataset.userId</tt>. + # To play nicely with JavaScript conventions sub-attributes are dasherized. + # For example, a key +user_id+ would render as <tt>data-user-id</tt> and + # thus accessed as <tt>dataset.userId</tt>. # # 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> |