aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorAlexey Vakhov <vakhov@gmail.com>2011-10-11 12:31:27 +0400
committerAlexey Vakhov <vakhov@gmail.com>2011-10-11 12:31:27 +0400
commit419d4c09dfcc5cbd898ce52d779603c6a29ac3bc (patch)
tree57dd4755fae49d1ff2b741fdddd0d95831246e85 /actionpack/lib/action_controller
parentfcb70f364ccb087f672a85d4d18cc79736503a13 (diff)
downloadrails-419d4c09dfcc5cbd898ce52d779603c6a29ac3bc.tar.gz
rails-419d4c09dfcc5cbd898ce52d779603c6a29ac3bc.tar.bz2
rails-419d4c09dfcc5cbd898ce52d779603c6a29ac3bc.zip
Add ActionController#head example
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/metal/head.rb2
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 8abcad55a2..a618533d09 100644
--- a/actionpack/lib/action_controller/metal/head.rb
+++ b/actionpack/lib/action_controller/metal/head.rb
@@ -9,6 +9,8 @@ module ActionController
#
# head :created, :location => person_path(@person)
#
+ # head :created, :location => @person
+ #
# It can also be used to return exceptional conditions:
#
# return head(:method_not_allowed) unless request.post?