From 9e9c4d48e5b9690a7c0f92a2a7258e1ad0f42cd1 Mon Sep 17 00:00:00 2001 From: Trish Griego Date: Tue, 18 Oct 2016 16:13:06 -0700 Subject: [PATCH] Created homepages routes rooting to index page. --- config/routes.rb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index b4c40aa031..7723146324 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,9 @@ Rails.application.routes.draw do - get 'homepages/index' +##### homepages routes ##### +# why were these generated with index? + root to: 'homepages#index' + get 'homepages/index', as: 'index' + get 'homepages/show' @@ -13,6 +17,8 @@ get 'homepages/destroy' +##### user routes ##### + get 'users/index' get 'users/show' @@ -27,6 +33,8 @@ get 'users/destroy' + ##### products routes ##### + get 'products/index' get 'products/show' @@ -41,6 +49,8 @@ get 'products/destroy' +##### sessions routes ##### + get 'sessions/index' get 'sessions/show' @@ -55,6 +65,8 @@ get 'sessions/destroy' +##### orders routes ##### + get 'orders/index' get 'orders/show'