diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2012-03-28 04:03:50 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2012-03-28 18:03:15 +0200 |
commit | 805b15ff35122f5fd0bb9c1742578b14eebfac32 (patch) | |
tree | 7c01ed925098e52f5903f5f45c0a5d46cf62d1e1 /guides/source | |
parent | 6cff09038d5d78e6a4a12d0a27c6b1b87f0a5147 (diff) | |
download | rails-805b15ff35122f5fd0bb9c1742578b14eebfac32.tar.gz rails-805b15ff35122f5fd0bb9c1742578b14eebfac32.tar.bz2 rails-805b15ff35122f5fd0bb9c1742578b14eebfac32.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)
Conflicts:
actionpack/CHANGELOG.md
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/configuring.textile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/configuring.textile b/guides/source/configuring.textile index cf0d8f1a43..46e02c904f 100644 --- a/guides/source/configuring.textile +++ b/guides/source/configuring.textile @@ -395,6 +395,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+: |