Skip to content

Commit

Permalink
Merge branch 'master' of github.com:lifo/docrails
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdavey committed Jan 31, 2012
2 parents 5be94ce + 39ace13 commit f457f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/guides/source/form_helpers.textile
Expand Up @@ -754,7 +754,7 @@ produces exactly the same output as the previous example.

h3. Forms to external resources

If you need to post some data to an external resource it is still great to build your from using rails form helpers. But sometimes you need to set an +authenticity_token+ for this resource. You can do it by passing an +:authenticity_token => 'your_external_token'+ parameter to the +form_tag+ options:
If you need to post some data to an external resource it is still great to build your form using rails form helpers. But sometimes you need to set an +authenticity_token+ for this resource. You can do it by passing an +:authenticity_token => 'your_external_token'+ parameter to the +form_tag+ options:

<erb>
<%= form_tag 'http://farfar.away/form', :authenticity_token => 'external_token') do %>
Expand Down

0 comments on commit f457f87

Please sign in to comment.