diff options
author | Alexey Vakhov <vakhov@gmail.com> | 2011-10-11 12:31:27 +0400 |
---|---|---|
committer | Alexey Vakhov <vakhov@gmail.com> | 2011-10-11 12:31:27 +0400 |
commit | 419d4c09dfcc5cbd898ce52d779603c6a29ac3bc (patch) | |
tree | 57dd4755fae49d1ff2b741fdddd0d95831246e85 /actionpack/lib/action_controller | |
parent | fcb70f364ccb087f672a85d4d18cc79736503a13 (diff) | |
download | rails-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.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 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? |