提交 cc9a6f2e 编写于 作者: R Ryan Bigg

[getting started] split up section about rake routes after 'resources' call

上级 42c6f89c
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册