From 3da7ea869a41d86c5ae9cf67765c37c3221e1c26 Mon Sep 17 00:00:00 2001 From: Fernando Blat Date: Tue, 7 Sep 2010 12:00:20 +0200 Subject: Fixed the reference to public blog routes. Fixed module dependency --- config/routes.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'config') 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 -- cgit v1.2.3