Skip to content

Commit 03bb5c1

Browse files
Merge pull request rails#43323 from muraken-ken/hotfix
Fix wrong API document for form_with helper method [ci-skip]
2 parents 8e6817f + 0a3b1eb commit 03bb5c1

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
@@ -484,7 +484,7 @@ def apply_form_for_options!(record, object, options) # :nodoc:
484484
# <%= form.text_field :title %>
485485
# <% end %>
486486
# # =>
487-
# <form action="/posts" method="post" data-remote="true">
487+
# <form action="/posts" method="post">
488488
# <input type="text" name="title">
489489
# </form>
490490
#
@@ -493,7 +493,7 @@ def apply_form_for_options!(record, object, options) # :nodoc:
493493
# <%= form.text_field :title %>
494494
# <% end %>
495495
# # =>
496-
# <form action="/posts" method="post" data-remote="true">
496+
# <form action="/posts" method="post">
497497
# <input type="text" name="post[title]">
498498
# </form>
499499
#
@@ -502,7 +502,7 @@ def apply_form_for_options!(record, object, options) # :nodoc:
502502
# <%= form.text_field :title %>
503503
# <% end %>
504504
# # =>
505-
# <form action="/posts" method="post" data-remote="true">
505+
# <form action="/posts" method="post">
506506
# <input type="text" name="post[title]">
507507
# </form>
508508
#
@@ -511,7 +511,7 @@ def apply_form_for_options!(record, object, options) # :nodoc:
511511
# <%= form.text_field :title %>
512512
# <% end %>
513513
# # =>
514-
# <form action="/posts/1" method="post" data-remote="true">
514+
# <form action="/posts/1" method="post">
515515
# <input type="hidden" name="_method" value="patch">
516516
# <input type="text" name="post[title]" value="<the title of the post>">
517517
# </form>
@@ -522,7 +522,7 @@ def apply_form_for_options!(record, object, options) # :nodoc:
522522
# <%= form.text_field :but_in_forms_they_can %>
523523
# <% end %>
524524
# # =>
525-
# <form action="/cats" method="post" data-remote="true">
525+
# <form action="/cats" method="post">
526526
# <input type="text" name="cat[cats_dont_have_gills]">
527527
# <input type="text" name="cat[but_in_forms_they_can]">
528528
# </form>

0 commit comments

Comments
 (0)