From 0df8829a59255e68d996936aafc6607555ef4713 Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Thu, 2 Feb 2012 10:53:57 +1300 Subject: Fix routing. --- config/routes.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index 3ee7dd8..fd7272d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,5 @@ Refinery::Core::Engine.routes.draw do - namespace :blog, :path => '' do + namespace :blog do root :to => "posts#index" resources :posts, :only => [:show] @@ -8,7 +8,9 @@ Refinery::Core::Engine.routes.draw do match ':id/comments', :to => 'posts#comment', :as => 'comments' get 'archive/:year(/:month)', :to => 'posts#archive', :as => 'archive_posts' get 'tagged/:tag_id(/:tag_name)' => 'posts#tagged', :as => 'tagged_posts' + end + namespace :blog, :path => '' do namespace :admin, :path => 'refinery' do scope :path => 'blog' do root :to => "posts#index" -- cgit v1.2.3