aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2012-02-02 10:53:57 +1300
committerPhilip Arndt <parndt@gmail.com>2012-02-02 10:53:57 +1300
commit0df8829a59255e68d996936aafc6607555ef4713 (patch)
tree49be6b0af65d1a25b4a7c62de759f8d99b4ae324 /config
parent1244370bc5087228cf3b1cade8f5533720924d4f (diff)
downloadrefinerycms-blog-0df8829a59255e68d996936aafc6607555ef4713.tar.gz
refinerycms-blog-0df8829a59255e68d996936aafc6607555ef4713.tar.bz2
refinerycms-blog-0df8829a59255e68d996936aafc6607555ef4713.zip
Fix routing.
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb4
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"