From 8443c85519aecc6879a736c3a4a0877184cbc247 Mon Sep 17 00:00:00 2001 From: Timothy N. Tsvetkov Date: Mon, 7 Feb 2011 14:35:47 +0300 Subject: [PATCH] [PATCH] Updated form rails guide for new place of authenticity_token option --- railties/guides/source/form_helpers.textile | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/railties/guides/source/form_helpers.textile b/railties/guides/source/form_helpers.textile index cdb311c..40db430 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 %> -- 1.7.1