From 1cfbfdb5da9a8768f219130a8a144de54bb329b3 Mon Sep 17 00:00:00 2001 From: Joe Sak Date: Tue, 21 Sep 2010 22:41:48 -0500 Subject: Routing errors in Rails3 --- config/routes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index a0c1f94..16f1228 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -32,8 +32,8 @@ if Rails.version < '3.0.0' else Refinery::Application.routes.draw do scope(:path => 'blog', :module => 'blog') do - root :to => 'posts#index' - match 'feed.rss', :to => 'posts#index.rss', :as => 'rss_feed' + root :to => 'posts#index', :as => 'blog_root' + match 'feed.rss', :to => 'posts#index.rss', :as => 'blog_rss_feed' 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' -- cgit v1.2.3