Merge pull request #43323 from muraken-ken/hotfix

Fix wrong API document for form_with helper method [ci-skip]
This commit is contained in:
Jonathan Hefner 2021-09-28 10:08:22 -05:00 committed by GitHub
commit 03bb5c1dc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -484,7 +484,7 @@ module ActionView
# <%= form.text_field :title %>
# <% end %>
# # =>
# <form action="/posts" method="post" data-remote="true">
# <form action="/posts" method="post">
# <input type="text" name="title">
# </form>
#
@ -493,7 +493,7 @@ module ActionView
# <%= form.text_field :title %>
# <% end %>
# # =>
# <form action="/posts" method="post" data-remote="true">
# <form action="/posts" method="post">
# <input type="text" name="post[title]">
# </form>
#
@ -502,7 +502,7 @@ module ActionView
# <%= form.text_field :title %>
# <% end %>
# # =>
# <form action="/posts" method="post" data-remote="true">
# <form action="/posts" method="post">
# <input type="text" name="post[title]">
# </form>
#
@ -511,7 +511,7 @@ module ActionView
# <%= form.text_field :title %>
# <% end %>
# # =>
# <form action="/posts/1" method="post" data-remote="true">
# <form action="/posts/1" method="post">
# <input type="hidden" name="_method" value="patch">
# <input type="text" name="post[title]" value="<the title of the post>">
# </form>
@ -522,7 +522,7 @@ module ActionView
# <%= form.text_field :but_in_forms_they_can %>
# <% end %>
# # =>
# <form action="/cats" method="post" data-remote="true">
# <form action="/cats" method="post">
# <input type="text" name="cat[cats_dont_have_gills]">
# <input type="text" name="cat[but_in_forms_they_can]">
# </form>