Skip to content

Commit 25046a9

Browse files
Autolink FormBuilder#form_with [ci-skip]
1 parent 08b24ea commit 25046a9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

actionview/lib/action_view/helpers/form_helper.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1632,7 +1632,7 @@ def default_form_builder_class
16321632
#
16331633
# A +FormBuilder+ object is associated with a particular model object and
16341634
# allows you to generate fields associated with the model object. The
1635-
# +FormBuilder+ object is yielded when using +form_with+ or +fields_for+.
1635+
# +FormBuilder+ object is yielded when using #form_with or +fields_for+.
16361636
# For example:
16371637
#
16381638
# <%= form_with model: @person do |person_form| %>
@@ -2033,12 +2033,12 @@ def field_name(method, *methods, multiple: false, index: @options[:index])
20332033
end
20342034
alias_method :text_area, :textarea
20352035

2036-
# Creates a scope around a specific model object like +form_with+, but
2036+
# Creates a scope around a specific model object like #form_with, but
20372037
# doesn't create the form tags themselves. This makes +fields_for+
20382038
# suitable for specifying additional model objects in the same form.
20392039
#
2040-
# Although the usage and purpose of +fields_for+ is similar to +form_with+'s,
2041-
# its method signature is slightly different. Like +form_with+, it yields
2040+
# Although the usage and purpose of +fields_for+ is similar to #form_with's,
2041+
# its method signature is slightly different. Like #form_with, it yields
20422042
# a FormBuilder object associated with a particular model object to a block,
20432043
# and within the block allows methods to be called on the builder to
20442044
# generate fields associated with the model object. Fields may reflect
@@ -2525,7 +2525,7 @@ def hidden_field(method, options = {})
25252525
# hash with +options+. These options will be tagged onto the HTML as an HTML element attribute as in the example
25262526
# shown.
25272527
#
2528-
# Using this method inside a +form_with+ block will set the enclosing form's encoding to <tt>multipart/form-data</tt>.
2528+
# Using this method inside a #form_with block will set the enclosing form's encoding to <tt>multipart/form-data</tt>.
25292529
#
25302530
# ==== Options
25312531
# * Creates standard HTML attributes for the tag.

0 commit comments

Comments
 (0)