Permalink
Browse files

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
  • Loading branch information...
1 parent 2f25413 commit 27ac7ad7e5204b97a22df4cdc4293dde515b23d1 Marcel Molina committed Oct 26, 2007
Showing with 4 additions and 2 deletions.
  1. +2 −0 actionpack/CHANGELOG
  2. +2 −2 actionpack/lib/action_controller/resources.rb
View
@@ -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]
@@ -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 }

0 comments on commit 27ac7ad

Please sign in to comment.