aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 20fa1b1..421e845 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -5,13 +5,16 @@ 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'
+ get 'tagged/:tag_name' => 'posts#tagged', :as => 'tagged_posts'
end
scope(:path => 'refinery', :as => 'admin', :module => 'admin') do
scope(:path => 'blog', :as => 'blog', :module => 'blog') do
root :to => 'posts#index'
- resources :posts
+ resources :posts do
+ get 'uncategorized', :on => :collection
+ end
resources :categories
@@ -32,6 +35,7 @@ Refinery::Application.routes.draw do
post :notification_recipients
get :moderation
+ get :comments
end
end
end