Skip to content

Commit 6afe706

Browse files
authored
Merge pull request rails#49683 from tiramizoo/fix-field-doc [ci-skip]
Fix code example in the field_name method
2 parents 8cf4242 + e6a0969 commit 6afe706

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actionview/lib/action_view/helpers/form_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1783,7 +1783,7 @@ def field_id(method, *suffixes, namespace: @options[:namespace], index: @options
17831783
# <% end %>
17841784
#
17851785
# <%= form_for @post do |f| %>
1786-
# <%= f.field_tag :tag, name: f.field_name(:tag, multiple: true) %>
1786+
# <%= f.text_field :tag, name: f.field_name(:tag, multiple: true) %>
17871787
# <%# => <input type="text" name="post[tag][]">
17881788
# <% end %>
17891789
#

0 commit comments

Comments
 (0)