From 7a774259010acec2a3b4c85e1a4b3289e4010ba8 Mon Sep 17 00:00:00 2001 From: "Timothy N. Tsvetkov" Date: Mon, 7 Feb 2011 14:35:47 +0300 Subject: Updated form rails guide for new place of authenticity_token option Signed-off-by: Santiago Pastorino --- railties/guides/source/form_helpers.textile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'railties/guides/source') 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 %> -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: -<%= 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 %> @@ -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: -<%= 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 %> -- cgit v1.2.3