Skip to content

Commit 77e5d4e

Browse files
Rephrase advice about forms for nested attributes [ci-skip]
1 parent 3534c40 commit 77e5d4e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

activerecord/lib/active_record/nested_attributes.rb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -283,13 +283,11 @@ class TooManyRecords < ActiveRecordError
283283
#
284284
# === Creating forms with nested attributes
285285
#
286-
# Use ActionView::Helpers::FormHelper#fields_for to create form elements
287-
# for updating or destroying nested attributes.
286+
# Use ActionView::Helpers::FormHelper#fields_for to create form elements for
287+
# nested attributes.
288288
#
289-
# === Testing
290-
#
291-
# If you are using ActionView::Helpers::FormHelper#fields_for, your integration
292-
# tests should replicate the HTML structure it provides. For example;
289+
# Integration test params should reflect the structure of the form. For
290+
# example:
293291
#
294292
# post members_path, params: {
295293
# member: {

0 commit comments

Comments
 (0)