diff options
author | Vipul A M <vipulnsward@gmail.com> | 2016-02-09 11:21:46 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2016-02-09 11:21:46 +0530 |
commit | 0e70595acc8796c3e0854ef72df478d597243e68 (patch) | |
tree | 929954f90965e9a7837e270ced58fb9254e6084a /guides/source | |
parent | 43e902a65fbdf81a09fa498e34568eb32c84fe52 (diff) | |
parent | 9e70daa9417d9eef875dae0e324aeea8884977ed (diff) | |
download | rails-0e70595acc8796c3e0854ef72df478d597243e68.tar.gz rails-0e70595acc8796c3e0854ef72df478d597243e68.tar.bz2 rails-0e70595acc8796c3e0854ef72df478d597243e68.zip |
Merge pull request #23571 from y-yagi/remove_deprecated_render_nothing_from_guide
remove description of `render :nothing` from guide [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/layouts_and_rendering.md | 2 |
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 |