diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-03-06 08:22:43 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-03-06 08:22:43 -0800 |
commit | b7192143edc8a8988c8ae0bffb13eb038f08ef16 (patch) | |
tree | a6ff66ece992d5cb593db84cc16061c492e9ce0c /guides | |
parent | 2e048bc007e9e0d25d2d243fedc1eb4b93a9428e (diff) | |
parent | ed88a601f7b37de0f89b64249aaeed884faed836 (diff) | |
download | rails-b7192143edc8a8988c8ae0bffb13eb038f08ef16.tar.gz rails-b7192143edc8a8988c8ae0bffb13eb038f08ef16.tar.bz2 rails-b7192143edc8a8988c8ae0bffb13eb038f08ef16.zip |
Merge pull request #14285 from sikachu/master-revert-render-body-remove-content-type
Do note remove `Content-Type` when `render :body`
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/layouts_and_rendering.md | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/guides/source/layouts_and_rendering.md b/guides/source/layouts_and_rendering.md index 66ed6f2e08..bd33c5a146 100644 --- a/guides/source/layouts_and_rendering.md +++ b/guides/source/layouts_and_rendering.md @@ -304,10 +304,13 @@ type, by using the `:body` option to `render`: render body: "raw" ``` -TIP: This option should be used only if you explicitly want the content type to -be unset. Using `:plain` or `:html` might be more appropriate in most of the +TIP: This option should be used only if you don't care about the content type of +the response. Using `:plain` or `:html` might be more appropriate in most of the time. +NOTE: Unless overriden, your response returned from this render option will be +`text/html`, as that is the default content type of Action Dispatch response. + #### Options for `render` Calls to the `render` method generally accept four options: |