aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG
diff options
context:
space:
mode:
authorJamis Buck <jamis@37signals.com>2006-09-28 19:13:55 +0000
committerJamis Buck <jamis@37signals.com>2006-09-28 19:13:55 +0000
commitb2ede64a89a5837a047e75f21a1522324a614514 (patch)
tree8a07dea342e5291f1af43fca38a9f88dcff2585e /actionpack/CHANGELOG
parentd6925b14fa2039ba2523c69e09f2ccad15e9016f (diff)
downloadrails-b2ede64a89a5837a047e75f21a1522324a614514.tar.gz
rails-b2ede64a89a5837a047e75f21a1522324a614514.tar.bz2
rails-b2ede64a89a5837a047e75f21a1522324a614514.zip
Add ActionController::Base#head for rendering empty responses. Add support for symbolic status codes, as well as for having raw integer statuses expand with their default messages.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5199 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/CHANGELOG')
-rw-r--r--actionpack/CHANGELOG11
1 files changed, 11 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG
index 96493f47cb..72e1d79eff 100644
--- a/actionpack/CHANGELOG
+++ b/actionpack/CHANGELOG
@@ -1,5 +1,16 @@
*SVN*
+* Make the :status parameter expand to the default message for that status code if it is an integer. Also support symbol statuses. [Jamis Buck]. Examples:
+
+ head :status => 404 # expands to "404 Not Found"
+ head :status => :not_found # expands to "404 Not Found"
+ head :status => :created # expands to "201 Created"
+
+* Add head(options = {}) for responses that have no body. [Jamis Buck]. Examples:
+
+ head :status => 404 # return an empty response with a 404 status
+ head :location => person_path(@person), :status => 201
+
* Fix bug that kept any before_filter except the first one from being able to halt the before_filter chain. [Rick Olson]
* strip_links is case-insensitive. #6285 [tagoh, Bob Silva]