From bf74b32f3fbdd50957bdf308b79846eeda7ee1fa Mon Sep 17 00:00:00 2001 From: Joe Sak Date: Mon, 10 Jan 2011 16:11:53 -0600 Subject: Archives group by year after 2 years --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/routes.rb') diff --git a/config/routes.rb b/config/routes.rb index 20fa1b1..8664468 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -5,7 +5,7 @@ Refinery::Application.routes.draw do 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', :to => 'posts#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 -- cgit v1.2.3