aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/form_helpers.textile
diff options
context:
space:
mode:
authorTimothy N. Tsvetkov <timothy.tsvetkov@gmail.com>2011-02-07 14:35:47 +0300
committerSantiago Pastorino <santiago@wyeworks.com>2011-02-07 10:50:58 -0200
commit7a774259010acec2a3b4c85e1a4b3289e4010ba8 (patch)
tree0334d17e8b101476676d959543904b232e3f5a8c /railties/guides/source/form_helpers.textile
parent65e08cfb4fdf30a38162477dc8b644c6fad74d93 (diff)
downloadrails-7a774259010acec2a3b4c85e1a4b3289e4010ba8.tar.gz
rails-7a774259010acec2a3b4c85e1a4b3289e4010ba8.tar.bz2
rails-7a774259010acec2a3b4c85e1a4b3289e4010ba8.zip
Updated form rails guide for new place of authenticity_token option
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'railties/guides/source/form_helpers.textile')
-rw-r--r--railties/guides/source/form_helpers.textile6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/guides/source/form_helpers.textile b/railties/guides/source/form_helpers.textile
index cdb311c726..40db43079c 100644
--- a/railties/guides/source/form_helpers.textile
+++ b/railties/guides/source/form_helpers.textile
@@ -782,10 +782,10 @@ Sometimes when you submit data to an external resource, like payment gateway, fi
<% end %>
</erb>
-The same technique is available for the +form_for+ too. You need just to set an +authenticity_token+ through +html+ options:
+The same technique is available for the +form_for+ too:
<erb>
-<%= form_for @invoice, :url => external_url, :html => { :authenticity_token => 'external_token' } do |f|
+<%= form_for @invoice, :url => external_url, :authenticity_token => 'external_token' do |f|
Form contents
<% end %>
</erb>
@@ -793,7 +793,7 @@ The same technique is available for the +form_for+ too. You need just to set an
Or if you don't want to render an +authenticity_token+ field:
<erb>
-<%= form_for @invoice, :url => external_url, :html => { :authenticity_token => false } do |f|
+<%= form_for @invoice, :url => external_url, :authenticity_token => false do |f|
Form contents
<% end %>
</erb>