diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2014-01-31 01:57:00 -0800 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2014-01-31 01:57:00 -0800 |
commit | 8ea797809daa4bff1c45cb886c4525274fc972cf (patch) | |
tree | 80ac8a9aeafdd7a2e549cd253ba4fbfe54cf741c /guides | |
parent | 5df52961f7dad10af5d4341df5f8a62c4634b699 (diff) | |
parent | 0a4466b7e8429ef57a30acb476017e3fc450f763 (diff) | |
download | rails-8ea797809daa4bff1c45cb886c4525274fc972cf.tar.gz rails-8ea797809daa4bff1c45cb886c4525274fc972cf.tar.bz2 rails-8ea797809daa4bff1c45cb886c4525274fc972cf.zip |
Merge pull request #13900 from zzak/issue_12963
Document default trim mode for Erubis and affected ERB tags. Fixes #12963 [ci skip]
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/configuring.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md index 5e0010725e..669086edbe 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -378,7 +378,7 @@ encrypted cookies salt value. Defaults to `'signed encrypted cookie'`. * `config.action_view.logger` accepts a logger conforming to the interface of Log4r or the default Ruby Logger class, which is then used to log information from Action View. Set to `nil` to disable logging. -* `config.action_view.erb_trim_mode` gives the trim mode to be used by ERB. It defaults to `'-'`. See the [ERB documentation](http://www.ruby-doc.org/stdlib/libdoc/erb/rdoc/) for more information. +* `config.action_view.erb_trim_mode` gives the trim mode to be used by ERB. It defaults to `'-'`, which turns on trimming of tail spaces and newline when using `<%= -%>` or `<%= =%>`. See the [Erubis documentation](http://www.kuwata-lab.com/erubis/users-guide.06.html#topics-trimspaces) for more information. * `config.action_view.embed_authenticity_token_in_remote_forms` allows you to set the default behavior for `authenticity_token` in forms with `:remote => true`. By default it's set to false, which means that remote forms will not include `authenticity_token`, which is helpful when you're fragment-caching the form. Remote forms get the authenticity from the `meta` tag, so embedding is unnecessary unless you support browsers without JavaScript. In such case you can either pass `:authenticity_token => true` as a form option or set this config setting to `true` |