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.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/guides/code/getting_started/config/routes.rb b/guides/code/getting_started/config/routes.rb
index b048ac68f1..98b1a6dcc8 100644
--- a/guides/code/getting_started/config/routes.rb
+++ b/guides/code/getting_started/config/routes.rb
@@ -1,9 +1,10 @@
Blog::Application.routes.draw do
- resources :posts do
- resources :comments
- end
+ # resources :posts do
+ # resources :comments
+ # end
- get "home/index"
+ get "posts/new"
+ post "posts/create"
# The priority is based upon order of creation:
# first created -> highest priority.
@@ -55,7 +56,7 @@ 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"
-
+
# See how all your routes lay out with "rake routes"
# This is a legacy wild controller route that's not recommended for RESTful applications.