aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2010-08-09 19:31:22 +1200
committerPhilip Arndt <parndt@gmail.com>2010-08-09 19:31:22 +1200
commita5fe9225fac33f15e972599132c7f569cc5cf397 (patch)
treef58e7405a03546a37e26f2f1c2694ee12e93fc7d /config/routes.rb
parent30df46503cf3176a37ad08ff50da7fa25b43e662 (diff)
downloadrefinerycms-blog-a5fe9225fac33f15e972599132c7f569cc5cf397.tar.gz
refinerycms-blog-a5fe9225fac33f15e972599132c7f569cc5cf397.tar.bz2
refinerycms-blog-a5fe9225fac33f15e972599132c7f569cc5cf397.zip
Namespaced blog posts under blog/posts to allow for blog/comments and blog/categories
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index e47fa00..4722ce3 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -2,6 +2,8 @@ ActionController::Routing::Routes.draw do |map|
map.resources :blog_posts, :as => :blog
map.namespace(:admin, :path_prefix => 'refinery') do |admin|
- admin.resources :blog_posts, :collection => {:update_positions => :post}
+ admin.namespace :blog do |blog|
+ blog.resources :posts, :collection => {:update_positions => :post}
+ end
end
end