diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-07-25 15:30:38 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-07-25 15:31:24 +0200 |
commit | 6d87b78ab330b8d2e6f77215b303c779e2e98006 (patch) | |
tree | f946bbc2af6094aabcadeb8e3147f6a34f84cf75 /actionpack | |
parent | 38c2fec0144d0188770f0054f6a5120ec5a0cb83 (diff) | |
download | rails-6d87b78ab330b8d2e6f77215b303c779e2e98006.tar.gz rails-6d87b78ab330b8d2e6f77215b303c779e2e98006.tar.bz2 rails-6d87b78ab330b8d2e6f77215b303c779e2e98006.zip |
docs, add ref where to find valid `head` status symbols.
[ci skip]
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_controller/metal/head.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/metal/head.rb b/actionpack/lib/action_controller/metal/head.rb index 84a9112144..3d2badf9c2 100644 --- a/actionpack/lib/action_controller/metal/head.rb +++ b/actionpack/lib/action_controller/metal/head.rb @@ -14,6 +14,8 @@ module ActionController # return head(:method_not_allowed) unless request.post? # return head(:bad_request) unless valid_request? # render + # + # See Rack::Utils::SYMBOL_TO_STATUS_CODE for a full list of valid +status+ symbols. def head(status, options = {}) options, status = status, nil if status.is_a?(Hash) status ||= options.delete(:status) || :ok |