Skip to content

Commit

Permalink
Fix code example in the field_name method
Browse files Browse the repository at this point in the history
  • Loading branch information
morgoth committed Oct 18, 2023
1 parent 8cf4242 commit e6a0969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionview/lib/action_view/helpers/form_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1783,7 +1783,7 @@ def field_id(method, *suffixes, namespace: @options[:namespace], index: @options
# <% end %>
#
# <%= form_for @post do |f| %>
# <%= f.field_tag :tag, name: f.field_name(:tag, multiple: true) %>
# <%= f.text_field :tag, name: f.field_name(:tag, multiple: true) %>
# <%# => <input type="text" name="post[tag][]">
# <% end %>
#
Expand Down

0 comments on commit e6a0969

Please sign in to comment.