Skip to content

Commit

Permalink
[ci skip] Remove unnecessary lines
Browse files Browse the repository at this point in the history
  • Loading branch information
yui-knk committed Apr 1, 2015
1 parent 66bf962 commit 0f26977
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions guides/source/layouts_and_rendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0f26977

Please sign in to comment.