1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

[ci skip] Mention form_with and fields in changelog.

Implemented in 67f81cc.
This commit is contained in:
Kasper Timm Hansen 2016-11-21 20:57:39 +01:00
parent 67f81cc72d
commit 1f2e896edb

View file

@ -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*