mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fixed typo
This commit is contained in:
parent
db4f0ac025
commit
98623a061e
1 changed files with 1 additions and 1 deletions
|
@ -777,7 +777,7 @@ If you need to post some data to an external resource it is still great to build
|
|||
Sometimes when you submit data to an external resource, like payment gateway, fields you can use in your form are limited by an external API. So you may want not to generate an +authenticity_token+ hidden field at all. For doing this just pass +false+ to the +:authenticity_token+ option:
|
||||
|
||||
<erb>
|
||||
<%= form_tag 'http://farfar.away/form', :authenticity_token => 'external_token') do %>
|
||||
<%= form_tag 'http://farfar.away/form', :authenticity_token => false) do %>
|
||||
Form contents
|
||||
<% end %>
|
||||
</erb>
|
||||
|
|
Loading…
Reference in a new issue