diff options
author | Xavier Noria <fxn@hashref.com> | 2010-10-19 10:13:26 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-10-19 10:13:26 +0200 |
commit | de3603c2552df3d7bb37be2d810aa719fbf7b94f (patch) | |
tree | d1b91537e298266475b4fef8751920cae42e60c4 | |
parent | cfcef34bb54bce0cda77da4ae99774fa501ab713 (diff) | |
download | rails-de3603c2552df3d7bb37be2d810aa719fbf7b94f.tar.gz rails-de3603c2552df3d7bb37be2d810aa719fbf7b94f.tar.bz2 rails-de3603c2552df3d7bb37be2d810aa719fbf7b94f.zip |
adds the new :data idiom in tag helpers to the CHANGELOG
-rw-r--r-- | actionpack/CHANGELOG | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 9eaa0eb605..2d133ca0b2 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,12 @@ *Rails 3.1.0 (unreleased)* +* Added a convenience idiom to generate HTML5 data-* attributes in tag helpers from a :data hash of options: + + tag("div", :data => {:name => 'Stephen', :city_state => %w(Chicago IL)}) + # => <div data-name="Stephen" data-city-state="["Chicago","IL"]" /> + + Keys are dasherized. Values are JSON-encoded, except for strings and symbols. [Stephen Celis] + * Added render :once. You can pass either a string or an array of strings and Rails will ensure they each of them are rendered just once. [José Valim] * Deprecate old template handler API. The new API simply requires a template handler to respond to call. [José Valim] |