aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/layouts_and_rendering.md
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2015-04-14 02:07:26 +0000
committerVijay Dev <vijaydev.cse@gmail.com>2015-04-14 02:07:26 +0000
commit8ac458ad2e252ba041d9f4e42b94bd5997a622be (patch)
tree3ecebd40ec582f6eb6049b01ec5137bc7b9415b3 /guides/source/layouts_and_rendering.md
parentea97c763c18b4f7534589665c73d501fcec229a3 (diff)
parent8ec88a1b9eee2f259fd9c4de87b9d7d0d4b21fba (diff)
downloadrails-8ac458ad2e252ba041d9f4e42b94bd5997a622be.tar.gz
rails-8ac458ad2e252ba041d9f4e42b94bd5997a622be.tar.bz2
rails-8ac458ad2e252ba041d9f4e42b94bd5997a622be.zip
Merge branch 'master' of github.com:rails/docrails
Diffstat (limited to 'guides/source/layouts_and_rendering.md')
-rw-r--r--guides/source/layouts_and_rendering.md2
1 files changed, 0 insertions, 2 deletions
diff --git a/guides/source/layouts_and_rendering.md b/guides/source/layouts_and_rendering.md
index c57fa358d6..d1a01f87ab 100644
--- a/guides/source/layouts_and_rendering.md
+++ b/guides/source/layouts_and_rendering.md
@@ -123,8 +123,6 @@ Content-Type: */*; charset=utf-8
X-Runtime: 0.014297
Set-Cookie: _blog_session=...snip...; path=/; HttpOnly
Cache-Control: no-cache
-
-$
```
We see there is an empty response (no data after the `Cache-Control` line), but the request was successful because Rails has set the response to 200 OK. You can set the `:status` option on render to change this response. Rendering nothing can be useful for Ajax requests where all you want to send back to the browser is an acknowledgment that the request was completed.