aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFernando Blat <ferblape@gmail.com>2010-09-07 12:00:20 +0200
committerFernando Blat <ferblape@gmail.com>2010-09-07 12:00:20 +0200
commit3da7ea869a41d86c5ae9cf67765c37c3221e1c26 (patch)
tree3d9ae0ca635faac1fe3527304035111f3f480b98
parente097b2aa5f5b4f18a251ac62cfb5934b916413f2 (diff)
downloadrefinerycms-blog-3da7ea869a41d86c5ae9cf67765c37c3221e1c26.tar.gz
refinerycms-blog-3da7ea869a41d86c5ae9cf67765c37c3221e1c26.tar.bz2
refinerycms-blog-3da7ea869a41d86c5ae9cf67765c37c3221e1c26.zip
Fixed the reference to public blog routes. Fixed module dependency
-rw-r--r--config/routes.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/routes.rb b/config/routes.rb
index f21fbba..01be470 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -30,11 +30,11 @@ if Rails.version < '3.0.0'
end
else
Refinery::Application.routes.draw do
- scope(:path => 'blog') do
+ scope(:path => 'blog', :module => 'blog') do
root :to => 'posts#index'
- match ':id', :to => 'posts#show', :as => 'post'
- match 'categories/:id', :to => 'categories#show', :as => 'category'
- match ':id/comments', :to => 'posts#comment', :as => 'post_blog_comments'
+ match ':id', :to => 'posts#show', :as => 'blog_post'
+ match 'categories/:id', :to => 'categories#show', :as => 'blog_category'
+ match ':id/comments', :to => 'posts#comment', :as => 'blog_post_blog_comments'
end
scope(:path => 'refinery', :as => 'admin', :module => 'admin') do