aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-04-24 17:52:03 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-04-24 17:52:03 +0000
commit5208d8d8173fc5ac47a061d872074d0fd797d70c (patch)
treebdf898db1b38fa17cc480be945b3eaa6bf0dddfc /actionpack/CHANGELOG
parent57352f86d43f6d3ee30f07d795087e68bf07f521 (diff)
downloadrails-5208d8d8173fc5ac47a061d872074d0fd797d70c.tar.gz
rails-5208d8d8173fc5ac47a061d872074d0fd797d70c.tar.bz2
rails-5208d8d8173fc5ac47a061d872074d0fd797d70c.zip
Added :location option to render so that the common pattern of rendering a response after creating a new resource is now a 1-liner [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6572 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/CHANGELOG')
-rw-r--r--actionpack/CHANGELOG4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG
index 3cc848ebf5..040d1162ad 100644
--- a/actionpack/CHANGELOG
+++ b/actionpack/CHANGELOG
@@ -1,5 +1,9 @@
*SVN*
+* Added :location option to render so that the common pattern of rendering a response after creating a new resource is now a 1-liner [DHH]
+
+ render :xml => post.to_xml, :status => :created, :location => post_url(post)
+
* Ensure that render_text only adds string content to the body of the response [DHH]
* Return the string representation from an Xml Builder when rendering a partial. Closes #5044 [tpope]