aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2015-04-01 20:02:56 +0900
committeryui-knk <spiketeika@gmail.com>2015-04-01 20:02:56 +0900
commit0f26977d092dff56561c0697d2bf2dccece611a7 (patch)
treea430ee261da9593a9e25333ba0ce1cc61bb6d356
parent66bf962a7a9f5304c2437f42a9af81ee46ef9dbb (diff)
downloadrails-0f26977d092dff56561c0697d2bf2dccece611a7.tar.gz
rails-0f26977d092dff56561c0697d2bf2dccece611a7.tar.bz2
rails-0f26977d092dff56561c0697d2bf2dccece611a7.zip
[ci skip] Remove unnecessary lines
-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.