aboutsummaryrefslogtreecommitdiffstats
path: root/guides/code/getting_started/config
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-05-01 19:06:03 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-05-01 19:06:03 +0530
commit42ff22f33a8963f1a1352f98e83b9918aa1a160d (patch)
tree3f43a8acee3ab20de78c4c9e30792296fddd06e4 /guides/code/getting_started/config
parent3cc6995e714bc763b40eb3e1d710c1e5ded44384 (diff)
parent339602b219e1fd842599f6750eb965f327a995c4 (diff)
downloadrails-42ff22f33a8963f1a1352f98e83b9918aa1a160d.tar.gz
rails-42ff22f33a8963f1a1352f98e83b9918aa1a160d.tar.bz2
rails-42ff22f33a8963f1a1352f98e83b9918aa1a160d.zip
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'guides/code/getting_started/config')
-rw-r--r--guides/code/getting_started/config/routes.rb13
1 files changed, 3 insertions, 10 deletions
diff --git a/guides/code/getting_started/config/routes.rb b/guides/code/getting_started/config/routes.rb
index 6095a05a58..04a6bd374e 100644
--- a/guides/code/getting_started/config/routes.rb
+++ b/guides/code/getting_started/config/routes.rb
@@ -1,15 +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", :as => :post
- get "posts/:id/edit" => "posts#edit"
- put "posts/:id" => "posts#update"
- delete "posts/:id" => "posts#destroy"
+ resources :posts do
+ resources :comments
+ end
# The priority is based upon order of creation:
# first created -> highest priority.