Fix routing.

This commit is contained in:
Philip Arndt 2012-02-02 10:53:57 +13:00
parent 1244370bc5
commit 0df8829a59

View file

@ -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"