@@ -848,7 +848,7 @@ def form_with(model: false, scope: nil, url: nil, format: nil, **options, &block
848
848
# === Nested Attributes Examples
849
849
#
850
850
# When the object belonging to the current scope has a nested attribute
851
- # writer for a certain attribute, fields_for will yield a new scope
851
+ # writer for a certain attribute, + fields_for+ will yield a new scope
852
852
# for that attribute. This allows you to create forms that set or change
853
853
# the attributes of a parent object and its associations in one go.
854
854
#
@@ -937,7 +937,7 @@ def form_with(model: false, scope: nil, url: nil, format: nil, **options, &block
937
937
# end
938
938
#
939
939
# Note that the <tt>projects_attributes=</tt> writer method is in fact
940
- # required for fields_for to correctly identify <tt>:projects</tt> as a
940
+ # required for + fields_for+ to correctly identify <tt>:projects</tt> as a
941
941
# collection, and the correct indices to be set in the form markup.
942
942
#
943
943
# When projects is already an association on Person you can use
@@ -949,7 +949,7 @@ def form_with(model: false, scope: nil, url: nil, format: nil, **options, &block
949
949
# end
950
950
#
951
951
# This model can now be used with a nested fields_for. The block given to
952
- # the nested fields_for call will be repeated for each instance in the
952
+ # the nested + fields_for+ call will be repeated for each instance in the
953
953
# collection:
954
954
#
955
955
# <%= form_with model: @person do |person_form| %>
@@ -1021,10 +1021,10 @@ def form_with(model: false, scope: nil, url: nil, format: nil, **options, &block
1021
1021
# ...
1022
1022
# <% end %>
1023
1023
#
1024
- # Note that fields_for will automatically generate a hidden field
1024
+ # Note that + fields_for+ will automatically generate a hidden field
1025
1025
# to store the ID of the record if it responds to <tt>persisted?</tt>.
1026
1026
# There are circumstances where this hidden field is not needed and you
1027
- # can pass <tt>include_id: false</tt> to prevent fields_for from
1027
+ # can pass <tt>include_id: false</tt> to prevent + fields_for+ from
1028
1028
# rendering it automatically.
1029
1029
def fields_for ( record_name , record_object = nil , options = { } , &block )
1030
1030
options = { model : record_object , allow_method_names_outside_object : false , skip_default_ids : false } . merge! ( options )
0 commit comments