diff --git a/actionview/lib/action_view/helpers/form_helper.rb b/actionview/lib/action_view/helpers/form_helper.rb
index 321d6b43e0..4414f62034 100644
--- a/actionview/lib/action_view/helpers/form_helper.rb
+++ b/actionview/lib/action_view/helpers/form_helper.rb
@@ -1018,9 +1018,10 @@ module ActionView
# <% end %>
#
# Note that fields_for will automatically generate a hidden field
- # to store the ID of the record. There are circumstances where this
- # hidden field is not needed and you can pass include_id: false
- # to prevent fields_for from rendering it automatically.
+ # to store the ID of the record if it responds to persisted?.
+ # There are circumstances where this hidden field is not needed and you
+ # can pass include_id: false to prevent fields_for from
+ # rendering it automatically.
def fields_for(record_name, record_object = nil, options = {}, &block)
options = { model: record_object, allow_method_names_outside_object: false, skip_default_ids: false }.merge!(options)