Merge pull request #50896 from yin0110/fix/button_to_explanation_improve

Improve ActionView::Helpers::UrlHelper button_to explanation [ci-skip]
This commit is contained in:
Petrik de Heus 2024-01-28 15:50:10 +01:00 committed by GitHub
commit c15658c95c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -220,8 +220,9 @@ def link_to(name = nil, options = nil, html_options = nil, &block)
# +:form_class+ option within +html_options+. It defaults to
# <tt>"button_to"</tt> to allow styling of the form and its children.
#
# The form submits a POST request by default. You can specify a different
# HTTP verb via the +:method+ option within +html_options+.
# The form submits a POST request by default if the object is not persisted;
# conversely, if the object is persisted, it will submit a PATCH request.
# To specify a different HTTP verb use the +:method+ option within +html_options+.
#
# If the HTML button generated from +button_to+ does not work with your layout, you can
# consider using the +link_to+ method with the +data-turbo-method+