Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 27ac7ad7e5204b97a22df4cdc4293dde515b23d1 1 parent 2f25413
Marcel Molina authored
View
2  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]
View
4 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 }
Please sign in to comment.
Something went wrong with that request. Please try again.