aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-02-09 14:32:16 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-02-09 14:38:50 +0900
commit9e70daa9417d9eef875dae0e324aeea8884977ed (patch)
tree929954f90965e9a7837e270ced58fb9254e6084a
parent43e902a65fbdf81a09fa498e34568eb32c84fe52 (diff)
downloadrails-9e70daa9417d9eef875dae0e324aeea8884977ed.tar.gz
rails-9e70daa9417d9eef875dae0e324aeea8884977ed.tar.bz2
rails-9e70daa9417d9eef875dae0e324aeea8884977ed.zip
remove description of `render :nothing` from guide [ci skip]
`:nothing` option was deprecated in 44781b6e9790d90b4f8b9a41d2b2c114b1a582ee
-rw-r--r--guides/source/layouts_and_rendering.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/layouts_and_rendering.md b/guides/source/layouts_and_rendering.md
index d55e1007ee..6946eb81eb 100644
--- a/guides/source/layouts_and_rendering.md
+++ b/guides/source/layouts_and_rendering.md
@@ -700,7 +700,7 @@ This would detect that there are no books with the specified ID, populate the `@
### Using `head` To Build Header-Only Responses
-The `head` method can be used to send responses with only headers to the browser. It provides a more obvious alternative to calling `render :nothing`. The `head` method accepts a number or symbol (see [reference table](#the-status-option)) representing a HTTP status code. The options argument is interpreted as a hash of header names and values. For example, you can return only an error header:
+The `head` method can be used to send responses with only headers to the browser. The `head` method accepts a number or symbol (see [reference table](#the-status-option)) representing a HTTP status code. The options argument is interpreted as a hash of header names and values. For example, you can return only an error header:
```ruby
head :bad_request