aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorJoe Sak <joe@joesak.com>2010-11-20 11:34:23 -0600
committerJoe Sak <joe@joesak.com>2010-11-20 11:34:23 -0600
commitb093813eef59fe79651b35458c257448ef21b87b (patch)
tree6947eb55c85307e453f0d864521c38e3afcd9341 /config/routes.rb
parentf99c2ccbc735ac52d922422063ae36045eb72f38 (diff)
downloadrefinerycms-blog-b093813eef59fe79651b35458c257448ef21b87b.tar.gz
refinerycms-blog-b093813eef59fe79651b35458c257448ef21b87b.tar.bz2
refinerycms-blog-b093813eef59fe79651b35458c257448ef21b87b.zip
Archive routing tested and fixed
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 5653aac..01fb501 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -9,7 +9,7 @@ if Rails.version < '3.0.0'
## what is the rails2 syntax for this? sorry ;__;
- # get 'archive/:year/:month', :on => :collection, :action => :archive, :as => 'archive'
+ # get 'archive/:year/:month', :to => 'posts#archive', :as => 'archive_blog_posts'
end
map.namespace(:admin, :path_prefix => 'refinery') do |admin|
@@ -41,7 +41,7 @@ else
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'
- get 'archive/:year/:month', :action => :archive, :as => 'archive_blog_posts'
+ get 'archive/:year/:month', :to => 'posts#archive', :as => 'archive_blog_posts'
end
scope(:path => 'refinery', :as => 'admin', :module => 'admin') do