aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2016-11-21 20:57:39 +0100
committerKasper Timm Hansen <kaspth@gmail.com>2016-11-21 20:59:35 +0100
commit1f2e896edb05467559b1df9653d350bda1ec75cb (patch)
treeac4b95c279aa6319292212a11a7648ee5e8b4a12 /actionview
parent67f81cc72db625799465332b87343cc625f346ae (diff)
downloadrails-1f2e896edb05467559b1df9653d350bda1ec75cb.tar.gz
rails-1f2e896edb05467559b1df9653d350bda1ec75cb.tar.bz2
rails-1f2e896edb05467559b1df9653d350bda1ec75cb.zip
[ci skip] Mention `form_with` and `fields` in changelog.
Implemented in 67f81cc.
Diffstat (limited to 'actionview')
-rw-r--r--actionview/CHANGELOG.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md
index 6e6ce64e72..558659dd77 100644
--- a/actionview/CHANGELOG.md
+++ b/actionview/CHANGELOG.md
@@ -1,3 +1,33 @@
+* Add `form_with` to unify `form_tag` and `form_for` usage.
+
+ Used like `form_tag` (where just the open tag is output):
+
+ ```erb
+ <%= form_with scope: :post, url: super_special_posts_path %>
+ ```
+
+ Used like `form_for`:
+
+ ```erb
+ <%= form_with model: @post do |form| %>
+ <%= form.text_field :title %>
+ <% end %>
+ ```
+
+ *Kasper Timm Hansen*, *Marek Kirejczyk*
+
+* Add `fields` form helper method.
+
+ ```erb
+ <%= fields :comment, model: @comment do |fields| %>
+ <%= fields.text_field :title %>
+ <% end %>
+ ```
+
+ Can also be used within form helpers such as `form_with`.
+
+ *Kasper Timm Hansen*
+
* Removed deprecated `#original_exception` in `ActionView::Template::Error`.
*Rafael Mendonça França*