aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJoe Sak <joe@joesak.com>2010-09-21 22:41:48 -0500
committerJoe Sak <joe@joesak.com>2010-09-21 22:41:48 -0500
commit1cfbfdb5da9a8768f219130a8a144de54bb329b3 (patch)
treed6cd2cf1bdcebd17f11c817704078b74c2d890b0 /config
parentca2e0b7bc01033d4da944861155a9f840bad9e68 (diff)
downloadrefinerycms-blog-1cfbfdb5da9a8768f219130a8a144de54bb329b3.tar.gz
refinerycms-blog-1cfbfdb5da9a8768f219130a8a144de54bb329b3.tar.bz2
refinerycms-blog-1cfbfdb5da9a8768f219130a8a144de54bb329b3.zip
Routing errors in Rails3
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb4
1 files changed, 2 insertions, 2 deletions
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'