Skip to content

Commit

Permalink
Merge pull request rails#28750 from alexmuller/patch-1
Browse files Browse the repository at this point in the history
Close form_for tag in FormHelper API docs
  • Loading branch information
rafaelfranca committed Apr 13, 2017
2 parents faca40d + e127456 commit 60502d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionview/lib/action_view/helpers/form_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -416,13 +416,13 @@ module FormHelper
#
# To set an authenticity token you need to pass an <tt>:authenticity_token</tt> parameter
#
# <%= form_for @invoice, url: external_url, authenticity_token: 'external_token' do |f|
# <%= form_for @invoice, url: external_url, authenticity_token: 'external_token' do |f| %>
# ...
# <% end %>
#
# If you don't want to an authenticity token field be rendered at all just pass <tt>false</tt>:
#
# <%= form_for @invoice, url: external_url, authenticity_token: false do |f|
# <%= form_for @invoice, url: external_url, authenticity_token: false do |f| %>
# ...
# <% end %>
def form_for(record, options = {}, &block)
Expand Down

0 comments on commit 60502d4

Please sign in to comment.