diff options
author | Ryan Bigg <radarlistener@gmail.com> | 2012-05-17 19:17:49 +1000 |
---|---|---|
committer | Ryan Bigg <radarlistener@gmail.com> | 2012-05-17 19:56:57 +1000 |
commit | cc9a6f2e0ae6b4691d52b61167c31d2383759ba1 (patch) | |
tree | aa03b29ce6e02f100279af955961702b10290c69 /guides | |
parent | 42c6f89c5dfa59ad2f91eb6f9f9da8f49999b03e (diff) | |
download | rails-cc9a6f2e0ae6b4691d52b61167c31d2383759ba1.tar.gz rails-cc9a6f2e0ae6b4691d52b61167c31d2383759ba1.tar.bz2 rails-cc9a6f2e0ae6b4691d52b61167c31d2383759ba1.zip |
[getting started] split up section about rake routes after 'resources' call
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/getting_started.textile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/guides/source/getting_started.textile b/guides/source/getting_started.textile index 4aeba5debe..1a57a81cf1 100644 --- a/guides/source/getting_started.textile +++ b/guides/source/getting_started.textile @@ -1176,7 +1176,7 @@ end </ruby> If you run +rake routes+, you'll see that all the routes that we -declared before are still available, and the app still works as before. +declared before are still available: <shell> # rake routes @@ -1190,6 +1190,9 @@ edit_post GET /posts/:id/edit(.:format) posts#edit root / welcome#index </shell> +Also, if you go through the motions of creating, updating and deleting +posts the app still works as before. + TIP: In general, Rails encourages the use of resources objects in place of declaring routes manually. For more information about routing, see "Rails Routing from the Outside In":routing.html. |