Fix routing.
This commit is contained in:
parent
1244370bc5
commit
0df8829a59
1 changed files with 3 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue