diff options
author | Philip Arndt <parndt@gmail.com> | 2012-02-02 10:53:57 +1300 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2012-02-02 10:53:57 +1300 |
commit | 0df8829a59255e68d996936aafc6607555ef4713 (patch) | |
tree | 49be6b0af65d1a25b4a7c62de759f8d99b4ae324 /config | |
parent | 1244370bc5087228cf3b1cade8f5533720924d4f (diff) | |
download | refinerycms-blog-0df8829a59255e68d996936aafc6607555ef4713.tar.gz refinerycms-blog-0df8829a59255e68d996936aafc6607555ef4713.tar.bz2 refinerycms-blog-0df8829a59255e68d996936aafc6607555ef4713.zip |
Fix routing.
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 4 |
1 files changed, 3 insertions, 1 deletions
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" |