You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/source/form_helpers.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1039,7 +1039,7 @@ WARNING: Array parameters do not play well with the `checkbox` helper. According
1039
1039
### Hashes with an Index
1040
1040
1041
1041
Let's say you want to render a form with a set of fields for each of a person's
1042
-
addresses. The [`fields_for`][] helper with its `:index` option can assist:
1042
+
addresses. The [`fields_for`](https://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-fields_for) helper with its `:index` option can assist:
1043
1043
1044
1044
```erb
1045
1045
<%= form_with model: @person do |person_form| %>
@@ -1089,7 +1089,7 @@ rendered the `name` attribute of each city input as
1089
1089
way you can tell which `Address` records should be modified when processing the
1090
1090
`params` hash.
1091
1091
1092
-
You can find more details about `fields_for` index option in the [API docs](https://api.rubyonrails.org/v7.1.3.4/classes/ActionView/Helpers/FormHelper.html#method-i-fields_for).
1092
+
You can find more details about `fields_for` index option in the [API docs](https://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-fields_for).
1093
1093
1094
1094
Building Complex Forms
1095
1095
----------------------
@@ -1338,4 +1338,4 @@ Generally, these helpers have the same name as their form builder counterparts p
1338
1338
Using `form_tag` and `form_for`
1339
1339
-------------------------------
1340
1340
1341
-
Before `form_with` was introduced in Rails 5.1 its functionality was split between [`form_tag`](https://api.rubyonrails.org/v5.2/classes/ActionView/Helpers/FormTagHelper.html#method-i-form_tag) and [`form_for`](https://api.rubyonrails.org/v5.2/classes/ActionView/Helpers/FormHelper.html#method-i-form_for). Both are now discouraged in favor of `form_with`, but you can still find being used in some codebases.
1341
+
Before `form_with` was introduced in Rails 5.1 its functionality was split between [`form_tag`](https://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html#method-i-form_tag) and [`form_for`](https://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-form_for). Both are now discouraged in favor of `form_with`, but you can still find being used in some codebases.
0 commit comments