aboutsummaryrefslogtreecommitdiffstats
path: root/guides/code/getting_started/config/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'guides/code/getting_started/config/routes.rb')
-rw-r--r--guides/code/getting_started/config/routes.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/guides/code/getting_started/config/routes.rb b/guides/code/getting_started/config/routes.rb
index 10009a35cf..04a6bd374e 100644
--- a/guides/code/getting_started/config/routes.rb
+++ b/guides/code/getting_started/config/routes.rb
@@ -1,12 +1,8 @@
Blog::Application.routes.draw do
- # resources :posts do
- # resources :comments
- # end
- get "posts" => "posts#index"
- get "posts/new"
- post "posts/create"
- get "posts/:id" => "posts#show"
+ resources :posts do
+ resources :comments
+ end
# The priority is based upon order of creation:
# first created -> highest priority.