Skip to content
Browse files

rewords a little the RDoc of the tag helper

  • Loading branch information...
1 parent ba1fb51 commit 95d87823d4c9837e7a491fb4469869c5b2de5e05 @fxn fxn committed Oct 19, 2010
Showing with 5 additions and 4 deletions.
  1. +5 −4 actionpack/lib/action_view/helpers/tag_helper.rb
View
9 actionpack/lib/action_view/helpers/tag_helper.rb
@@ -24,16 +24,17 @@ module TagHelper
# 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>

0 comments on commit 95d8782

Please sign in to comment.
Something went wrong with that request. Please try again.