aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJoe Sak <joe@joesak.com>2011-01-10 16:11:53 -0600
committerJoe Sak <joe@joesak.com>2011-01-10 16:11:53 -0600
commitbf74b32f3fbdd50957bdf308b79846eeda7ee1fa (patch)
treeba836797c939e54c60bf92c30323e2e7c666a8dc /config
parentb29b7df9acd67e8d2059766db4a743bc98d3effd (diff)
downloadrefinerycms-blog-bf74b32f3fbdd50957bdf308b79846eeda7ee1fa.tar.gz
refinerycms-blog-bf74b32f3fbdd50957bdf308b79846eeda7ee1fa.tar.bz2
refinerycms-blog-bf74b32f3fbdd50957bdf308b79846eeda7ee1fa.zip
Archives group by year after 2 years
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb2
1 files changed, 1 insertions, 1 deletions
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