From 05f0900621f49c0771a0d94054d8dd65a6d3b11f Mon Sep 17 00:00:00 2001 From: Saurabh Bhatia Date: Tue, 1 Apr 2014 16:55:20 +0800 Subject: [PATCH] fixed the route to work with all levels of page nesting --- config/routes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 33b0129..43adcfc 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -17,8 +17,8 @@ OrbitStore::Application.routes.draw do # You can have the root of your site routed with "root" root 'home#index' - scope "(:locale)", locale: /en|zh_tw/ do - get ':page_id(/:page_id((/:page_id)/:slug))', to: 'pages#show' + scope "(:locale)", locale: /en|zh_tw/ do + get ':page_id((/:page_id)/:page_id/:slug)', to: 'pages#show' resources :pages end # Example of regular route: