aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorChase DuBois <cdubois@goodreads.com>2013-04-14 13:37:30 -0700
committerChase DuBois <cdubois@goodreads.com>2013-04-14 13:37:30 -0700
commit1ed40d7c2e86da5fc10e7d735a657e7fc3552e24 (patch)
tree07a5cb65380e14eebca1b0b6e842c68bbd1f20f7 /guides
parentbe1af1b896f8787ebac04c479f72eae6e8f8e6fb (diff)
downloadrails-1ed40d7c2e86da5fc10e7d735a657e7fc3552e24.tar.gz
rails-1ed40d7c2e86da5fc10e7d735a657e7fc3552e24.tar.bz2
rails-1ed40d7c2e86da5fc10e7d735a657e7fc3552e24.zip
Clarify arguments of head method
Diffstat (limited to 'guides')
-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 c8bb6f4110..abd41c2dee 100644
--- a/guides/source/layouts_and_rendering.md
+++ b/guides/source/layouts_and_rendering.md
@@ -633,7 +633,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 takes one parameter, which 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. 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:
```ruby
head :bad_request