aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorMarcel Molina <marcel@vernix.org>2007-10-26 03:32:20 +0000
committerMarcel Molina <marcel@vernix.org>2007-10-26 03:32:20 +0000
commit27ac7ad7e5204b97a22df4cdc4293dde515b23d1 (patch)
tree7d3b127144cc49a072754385cb1078d083347165 /actionpack
parent2f254137e29182b62b3f00aae038f2039e187f23 (diff)
downloadrails-27ac7ad7e5204b97a22df4cdc4293dde515b23d1.tar.gz
rails-27ac7ad7e5204b97a22df4cdc4293dde515b23d1.tar.bz2
rails-27ac7ad7e5204b97a22df4cdc4293dde515b23d1.zip
Make example parameters in restful routing docs idiomatic. Closes #9993 [danger]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8028 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/CHANGELOG2
-rw-r--r--actionpack/lib/action_controller/resources.rb4
2 files changed, 4 insertions, 2 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG
index 876bc4508d..e1d8f45768 100644
--- a/actionpack/CHANGELOG
+++ b/actionpack/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Make example parameters in restful routing docs idiomatic. Closes #9993 [danger]
+
* Make documentation comment for mime responders match documentation example. Closes #9357 [yon]
* Introduce a new test case class for functional tests. ActionController::TestCase. [Koz]
diff --git a/actionpack/lib/action_controller/resources.rb b/actionpack/lib/action_controller/resources.rb
index 6c1459cd9f..8ec6b84a53 100644
--- a/actionpack/lib/action_controller/resources.rb
+++ b/actionpack/lib/action_controller/resources.rb
@@ -28,10 +28,10 @@ module ActionController
# GET /posts/1
#
# # A POST request on the Posts resource is asking for a Post to be created with the supplied details
- # POST /posts # with => { :title => "My Whizzy New Post", :body => "I've got a brand new combine harvester" }
+ # POST /posts # with => { :post => { :title => "My Whizzy New Post", :body => "I've got a brand new combine harvester" } }
#
# # A PUT request on a single Post resource is asking for a Post to be updated
- # PUT /posts # with => { :id => 1, :title => "Changed Whizzy Title" }
+ # PUT /posts # with => { :id => 1, :post => { :title => "Changed Whizzy Title" } }
#
# # A DELETE request on a single Post resource is asking for it to be deleted
# DELETE /posts # with => { :id => 1 }