From 27ac7ad7e5204b97a22df4cdc4293dde515b23d1 Mon Sep 17 00:00:00 2001 From: Marcel Molina Date: Fri, 26 Oct 2007 03:32:20 +0000 Subject: 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 --- actionpack/lib/action_controller/resources.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib') 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 } -- cgit v1.2.3