Permalink
Browse files

Add ActionController#head example

  • Loading branch information...
1 parent fcb70f3 commit 419d4c09dfcc5cbd898ce52d779603c6a29ac3bc @avakhov avakhov committed Oct 11, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 actionpack/lib/action_controller/metal/head.rb
View
2 actionpack/lib/action_controller/metal/head.rb
@@ -9,6 +9,8 @@ module Head
#
# 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?

0 comments on commit 419d4c0

Please sign in to comment.