aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/configuring.textile
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2012-03-28 04:03:50 +0200
committerPiotr Sarnacki <drogus@gmail.com>2012-03-28 14:37:23 +0200
commitd646d9d2e76a66037cb258c179a6ca5133f13ede (patch)
tree0430fc84a0a89e29a4b5cd97a480465fe5e26e89 /railties/guides/source/configuring.textile
parent2d5b60e982cf210c36f849185382546cf16b52b9 (diff)
downloadrails-d646d9d2e76a66037cb258c179a6ca5133f13ede.tar.gz
rails-d646d9d2e76a66037cb258c179a6ca5133f13ede.tar.bz2
rails-d646d9d2e76a66037cb258c179a6ca5133f13ede.zip
Added config.action_view.embed_authenticity_token_in_remote_forms
There is a regression introduced in 16ee611fa, which breaks remote forms that should also work without javascript. This commit introduces config option that allows to configure this behavior defaulting to the old behavior (ie. include authenticity token in remote forms by default)
Diffstat (limited to 'railties/guides/source/configuring.textile')
-rw-r--r--railties/guides/source/configuring.textile2
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/guides/source/configuring.textile b/railties/guides/source/configuring.textile
index 11dbba0e3d..60034cdda5 100644
--- a/railties/guides/source/configuring.textile
+++ b/railties/guides/source/configuring.textile
@@ -375,6 +375,8 @@ And can reference in the view with the following code:
* +config.action_view.cache_asset_ids+ With the cache enabled, the asset tag helper methods will make fewer expensive file system calls (the default implementation checks the file system timestamp). However this prevents you from modifying any asset files while the server is running.
+* +config.action_view.embed_authenticity_token_in_remote_forms+ This is by default set to true. If you set it to false, authenticity_token will not be added to forms with +:remote => true+ by default. You can force +authenticity_token+ to be added to such remote form by passing +:authenticity_token => true+ option.
+
h4. Configuring Action Mailer
There are a number of settings available on +config.action_mailer+: