Skip to content

Commit 7d6c3d4

Browse files
committed
Documentation improvement for #fields_for
1 parent 84c4598 commit 7d6c3d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

actionview/lib/action_view/helpers/form_helper.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -795,8 +795,8 @@ def form_with(model: false, scope: nil, url: nil, format: nil, **options, &block
795795
# generate fields associated with the model object. Fields may reflect
796796
# a model object in two ways - how they are named (hence how submitted
797797
# values appear within the +params+ hash in the controller) and what
798-
# default values are shown when the form the fields appear in is first
799-
# displayed. In order for both of these features to be specified independently,
798+
# default values are shown when the form fields are first displayed.
799+
# In order for both of these features to be specified independently,
800800
# both an object name (represented by either a symbol or string) and the
801801
# object itself can be passed to the method separately -
802802
#
@@ -2046,8 +2046,8 @@ def #{selector}(method, options = {}) # def text_field(method, options = {})
20462046
# generate fields associated with the model object. Fields may reflect
20472047
# a model object in two ways - how they are named (hence how submitted
20482048
# values appear within the +params+ hash in the controller) and what
2049-
# default values are shown when the form the fields appear in is first
2050-
# displayed. In order for both of these features to be specified independently,
2049+
# default values are shown when the form fields are first displayed.
2050+
# In order for both of these features to be specified independently,
20512051
# both an object name (represented by either a symbol or string) and the
20522052
# object itself can be passed to the method separately -
20532053
#

0 commit comments

Comments
 (0)