Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Add missing PATCH in Getting Started Guide #134

Merged
merged 1 commit into from about 1 year ago

2 participants

Igor Kapkov Carlos Antonio da Silva
Igor Kapkov
igas commented April 07, 2013

No description provided.

Igor Kapkov igas merged commit 9b5e5c1 into from April 08, 2013
Igor Kapkov igas closed this April 08, 2013
Carlos Antonio da Silva

Please do not send pull requests to docrails, just go ahead and commit straight to the repo. Pull requests are open because @github doesn't allow us to close them. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Apr 07, 2013
Igor Kapkov Getting Started Guide: add missing PATCH d4b4a7e
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 9 additions and 8 deletions. Show diff stats Hide diff stats

  1. 17  guides/source/getting_started.md
17  guides/source/getting_started.md
Source Rendered
@@ -1043,7 +1043,7 @@ REST convention, so to create a new `Post` object it will look for a
1043 1043
 route named `posts_path`, and to update a `Post` object it will look for
1044 1044
 a route named `post_path` and pass the current object. Similarly, rails
1045 1045
 knows that it should create new objects via POST and update them via
1046  
-PUT.
  1046
+PATCH.
1047 1047
 
1048 1048
 If you run `rake routes` from the console you'll see that we already
1049 1049
 have a `posts_path` route, which was created automatically by Rails when we
@@ -1054,13 +1054,13 @@ received an error before. With your server running you can view your routes by v
1054 1054
 ```bash
1055 1055
 $ rake routes
1056 1056
 
1057  
-    posts GET  /posts(.:format)            posts#index
1058  
-posts_new GET  /posts/new(.:format)        posts#new
1059  
-          POST /posts(.:format)            posts#create
1060  
-          GET  /posts/:id(.:format)        posts#show
1061  
-          GET  /posts/:id/edit(.:format)   posts#edit
1062  
-          PUT  /posts/:id(.:format)        posts#update
1063  
-     root      /                           welcome#index
  1057
+    posts GET   /posts(.:format)            posts#index
  1058
+posts_new GET   /posts/new(.:format)        posts#new
  1059
+          POST  /posts(.:format)            posts#create
  1060
+          GET   /posts/:id(.:format)        posts#show
  1061
+          GET   /posts/:id/edit(.:format)   posts#edit
  1062
+          PATCH /posts/:id(.:format)        posts#update
  1063
+     root       /                           welcome#index
1064 1064
 ```
1065 1065
 
1066 1066
 To fix this, open `config/routes.rb` and modify the `get "posts/:id"`
@@ -1197,6 +1197,7 @@ $ rake routes
1197 1197
  new_post GET    /posts/new(.:format)      posts#new
1198 1198
 edit_post GET    /posts/:id/edit(.:format) posts#edit
1199 1199
      post GET    /posts/:id(.:format)      posts#show
  1200
+          PATCH  /posts/:id(.:format)      posts#update
1200 1201
           PUT    /posts/:id(.:format)      posts#update
1201 1202
           DELETE /posts/:id(.:format)      posts#destroy
1202 1203
      root        /                         welcome#index
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.