diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-04-21 23:04:04 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-04-21 23:04:04 +0530 |
commit | a719843d31042690fa4fa8f55bc8a647d360b2a8 (patch) | |
tree | d7cf910019968511bd33a15ba2c3709a366f23cd /guides/code/getting_started/config | |
parent | ed8108300b2bb96f9f6888188f4fb8cd418ab950 (diff) | |
parent | c670b57f0f9ec4d992f89e62e513ff5b7baf58ac (diff) | |
download | rails-a719843d31042690fa4fa8f55bc8a647d360b2a8.tar.gz rails-a719843d31042690fa4fa8f55bc8a647d360b2a8.tar.bz2 rails-a719843d31042690fa4fa8f55bc8a647d360b2a8.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.rb | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/guides/code/getting_started/config/routes.rb b/guides/code/getting_started/config/routes.rb index b048ac68f1..10009a35cf 100644 --- a/guides/code/getting_started/config/routes.rb +++ b/guides/code/getting_started/config/routes.rb @@ -1,9 +1,12 @@ Blog::Application.routes.draw do - resources :posts do - resources :comments - end + # resources :posts do + # resources :comments + # end - get "home/index" + get "posts" => "posts#index" + get "posts/new" + post "posts/create" + get "posts/:id" => "posts#show" # The priority is based upon order of creation: # first created -> highest priority. @@ -54,8 +57,8 @@ Blog::Application.routes.draw do # You can have the root of your site routed with "root" # just remember to delete public/index.html. - root :to => "home#index" - + root :to => "welcome#index" + # See how all your routes lay out with "rake routes" # This is a legacy wild controller route that's not recommended for RESTful applications. |