aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
blob: 2478f1b87b9108d712fa2cfd77853cf48d63973f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 => {
        :notification_recipients => [:get, :post],
        :moderation => :get
      }
    end
  end
end