diff options
author | Joe Sak <joe@joesak.com> | 2010-11-18 10:52:10 -0600 |
---|---|---|
committer | Joe Sak <joe@joesak.com> | 2010-11-18 10:52:10 -0600 |
commit | dc3cbaa0918c5194ae0f1e80024611c614be612f (patch) | |
tree | 148ec2e27b58295bfbfda2be12863d398d026713 /config | |
parent | c610fee93b9e20e083c68d99ee941c6b4f507cf0 (diff) | |
download | refinerycms-blog-dc3cbaa0918c5194ae0f1e80024611c614be612f.tar.gz refinerycms-blog-dc3cbaa0918c5194ae0f1e80024611c614be612f.tar.bz2 refinerycms-blog-dc3cbaa0918c5194ae0f1e80024611c614be612f.zip |
Archive listing, views, helpers
@page added to PostsController
TODO: language file stuff -- I left comments in the view files where these belong. I don't know how to test them from here
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index 16f1228..5653aac 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -6,6 +6,10 @@ if Rails.version < '3.0.0' blog.post ':id', :controller => "posts", :action => 'show' blog.category 'categories/:id', :controller => "categories", :action => 'show' blog.post_blog_comments ':id/comments', :controller => 'posts', :action => 'comment' + + + ## what is the rails2 syntax for this? sorry ;__; + # get 'archive/:year/:month', :on => :collection, :action => :archive, :as => 'archive' end map.namespace(:admin, :path_prefix => 'refinery') do |admin| @@ -37,6 +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' end scope(:path => 'refinery', :as => 'admin', :module => 'admin') do |