Skip to content

Commit 37ccb20

Browse files
committed
Add missing api docs link and remove embedded url versions
1 parent e64e5d3 commit 37ccb20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

guides/source/form_helpers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ WARNING: Array parameters do not play well with the `checkbox` helper. According
10391039
### Hashes with an Index
10401040

10411041
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:
10431043

10441044
```erb
10451045
<%= form_with model: @person do |person_form| %>
@@ -1089,7 +1089,7 @@ rendered the `name` attribute of each city input as
10891089
way you can tell which `Address` records should be modified when processing the
10901090
`params` hash.
10911091

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).
10931093

10941094
Building Complex Forms
10951095
----------------------
@@ -1338,4 +1338,4 @@ Generally, these helpers have the same name as their form builder counterparts p
13381338
Using `form_tag` and `form_for`
13391339
-------------------------------
13401340

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

Comments
 (0)