aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/code/getting_started/config/routes.rb
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-01-19 23:12:05 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-01-19 23:13:19 +0530
commit6e311b93adf295b97a1ad6056675d32ff51b212f (patch)
treee8557448cea8be6354cff5eeefb5972d86b65545 /railties/guides/code/getting_started/config/routes.rb
parent4c5b73fef8a41bd2bd8435fa4b00f7c40b721650 (diff)
downloadrails-6e311b93adf295b97a1ad6056675d32ff51b212f.tar.gz
rails-6e311b93adf295b97a1ad6056675d32ff51b212f.tar.bz2
rails-6e311b93adf295b97a1ad6056675d32ff51b212f.zip
update the getting_started guide code [ci skip]
Diffstat (limited to 'railties/guides/code/getting_started/config/routes.rb')
-rw-r--r--railties/guides/code/getting_started/config/routes.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/guides/code/getting_started/config/routes.rb b/railties/guides/code/getting_started/config/routes.rb
index 31f0d210db..b048ac68f1 100644
--- a/railties/guides/code/getting_started/config/routes.rb
+++ b/railties/guides/code/getting_started/config/routes.rb
@@ -1,7 +1,7 @@
Blog::Application.routes.draw do
- resources :posts do
- resources :comments
- end
+ resources :posts do
+ resources :comments
+ end
get "home/index"
@@ -60,5 +60,5 @@ Blog::Application.routes.draw do
# This is a legacy wild controller route that's not recommended for RESTful applications.
# Note: This route will make all actions in every controller accessible via GET requests.
- # match ':controller(/:action(/:id(.:format)))'
+ # match ':controller(/:action(/:id))(.:format)'
end