aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/CHANGELOG.md
diff options
context:
space:
mode:
authorMarek <marek.kirejczyk@gmail.com>2016-06-27 19:00:54 +0200
committerMarek <marek.kirejczyk@gmail.com>2016-06-27 19:00:54 +0200
commita65a3bde0bee7d3d28c30775ec955260ed61e96c (patch)
tree544fab93937e39f8b6c4219a0091cb701fc6535c /actionview/CHANGELOG.md
parentffded19faf497c0a0bb392c07f98d9eee62f6925 (diff)
downloadrails-a65a3bde0bee7d3d28c30775ec955260ed61e96c.tar.gz
rails-a65a3bde0bee7d3d28c30775ec955260ed61e96c.tar.bz2
rails-a65a3bde0bee7d3d28c30775ec955260ed61e96c.zip
New syntax for tag helpers i.e. tag.br instead of tag(br) #25195
Diffstat (limited to 'actionview/CHANGELOG.md')
-rw-r--r--actionview/CHANGELOG.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md
index 099842025c..ab4b46c56e 100644
--- a/actionview/CHANGELOG.md
+++ b/actionview/CHANGELOG.md
@@ -1,3 +1,28 @@
+* New syntax for tag helpers. Avoid positional parameters and support HTML5 by default.
+ Example usage of tag helpers before:
+
+ ```ruby
+ tag(:br, nil, true)
+ content_tag(:div, content_tag(:p, "Hello world!"), class: "strong")
+
+ <%= content_tag :div, class: "strong" do -%>
+ Hello world!
+ <% end -%>
+ ```
+
+ Example usage of tag helpers after:
+
+ ```ruby
+ tag.br
+ tag.div tag.p("Hello world!"), class: "strong"
+
+ <%= tag.div class: "strong" do %>
+ Hello world!
+ <% end %>
+ ```
+
+ *Marek Kirejczyk*, *Kasper Timm Hansen*
+
* Change `datetime_field` and `datetime_field_tag` to generate `datetime-local` fields.
As a new specification of the HTML 5 the text field type `datetime` will no longer exist