aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrathamesh Sonpatki <csonpatki@gmail.com>2013-07-30 21:10:36 +0530
committerPrathamesh Sonpatki <csonpatki@gmail.com>2013-08-05 21:18:41 +0530
commite2bbc2bb2a5aba10ca420c4e860fc98f718c36e7 (patch)
treeddab5e44da5f542b97c5aeeba075b6b32983bc2a
parent3baee0982d25e64cab2eeb046369f0fcf9ee2436 (diff)
downloadrails-e2bbc2bb2a5aba10ca420c4e860fc98f718c36e7.tar.gz
rails-e2bbc2bb2a5aba10ca420c4e860fc98f718c36e7.tar.bz2
rails-e2bbc2bb2a5aba10ca420c4e860fc98f718c36e7.zip
Removed confusing statements about routes in getting started guide [ci skip]
- routes for CRUD already exists as `resources :posts` is in `config/routes.rb` - So we don't have to add any new route in the `config/routes.rb` - As per #11644, the adding of routes which are already there confuses user, so here its changed to referring output of `rake routes`
-rw-r--r--guides/source/getting_started.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md
index fb52eb225a..dabdb391b3 100644
--- a/guides/source/getting_started.md
+++ b/guides/source/getting_started.md
@@ -575,7 +575,7 @@ If you submit the form again now, Rails will complain about not finding
the `show` action. That's not very useful though, so let's add the
`show` action before proceeding.
-First we need to add a new `route` in `config/routes.rb`.
+As we have seen in the output of `rake routes`, the route for `show` action is as follows:
```ruby
post GET /posts/:id(.:format) posts#show
@@ -654,7 +654,7 @@ For more information, refer to
### Listing all posts
We still need a way to list all our posts, so let's do that.
-We'll use a specific route from `config/routes.rb`:
+The route for this as per output of `rake routes` is:
```ruby
posts GET /posts(.:format) posts#index
@@ -1071,7 +1071,7 @@ Then do the same for the `app/views/posts/edit.html.erb` view:
We're now ready to cover the "D" part of CRUD, deleting posts from the
database. Following the REST convention, the route for
-deleting posts in the `config/routes.rb` is:
+deleting posts as per output of `rake routes` is:
```ruby
DELETE /posts/:id(.:format) posts#destroy