aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
blob: 7f1bf183a6350b6921d971ad2455e7aeb683dff2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
ActionController::Routing::Routes.draw do |map|
  map.resources :blog_posts, :as => :blog

  map.namespace(:admin, :path_prefix => 'refinery') do |admin|
    admin.namespace :blog do |blog|
      blog.resources :posts
      blog.resources :categories
      blog.resources :comments, :collection => {:approved => :get, :rejected => :get}
      blog.resources :settings, :collection => {:update_notified => [:get, :post], :moderation => :get}
    end
  end
end