aboutsummaryrefslogtreecommitdiffstats
path: root/guides/code/getting_started/config/routes.rb
diff options
context:
space:
mode:
authorOscar Del Ben <info@oscardelben.com>2012-04-30 09:08:32 +0200
committerOscar Del Ben <info@oscardelben.com>2012-04-30 09:08:32 +0200
commit06a1519a4dc714822bec2312a41950aedba82541 (patch)
tree153fe974b32932e3a0c5efbaa062007cfcd11130 /guides/code/getting_started/config/routes.rb
parentbb6bd01d41d7715d398d69f1a8fe462f33d6087a (diff)
downloadrails-06a1519a4dc714822bec2312a41950aedba82541.tar.gz
rails-06a1519a4dc714822bec2312a41950aedba82541.tar.bz2
rails-06a1519a4dc714822bec2312a41950aedba82541.zip
Rewrite adding a second model section of Getting Started Guide
Diffstat (limited to 'guides/code/getting_started/config/routes.rb')
-rw-r--r--guides/code/getting_started/config/routes.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/guides/code/getting_started/config/routes.rb b/guides/code/getting_started/config/routes.rb
index 5fb85de766..04a6bd374e 100644
--- a/guides/code/getting_started/config/routes.rb
+++ b/guides/code/getting_started/config/routes.rb
@@ -1,6 +1,8 @@
Blog::Application.routes.draw do
- resources :posts
+ resources :posts do
+ resources :comments
+ end
# The priority is based upon order of creation:
# first created -> highest priority.