Sha256: 5dcc294a30f00ca17b0046270ac13dc2814617f15988d4edfde01f1f16d129f4

Contents?: true

Size: 998 Bytes

Versions: 1

Compression:

Stored size: 998 Bytes

Contents

ActionController::Routing::Routes.draw do |map|
  # FIME: it doesn't work with namespace admin and without :name_prefix and path_prefix (only on production). :(
  #map.namespace(:admin) do |admin|
    map.resources :galleries,
      :name_prefix =>'admin_',
      :path_prefix => 'admin',
      :member     => {
        :clear_thumbs => :get,
        :reorder => :get, 
        :update_order => :post
      },
      :collection => { 
        :children => :get,
        :reorder => :get, 
        :update_order => :post 
      } do |galleries|
        galleries.resources :children,    :controller => 'galleries', :path_prefix => '/admin/galleries/:parent_id'
        galleries.resources :items,       :controller => 'gallery_items', :member => { :move => :put }
        galleries.resources :importings,  :controller => 'gallery_importings', :member => { :import => :put }
        galleries.resources :keywords,    :controller => 'gallery_keywords', :only => [ :edit, :update, :destroy ]
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
radiant-taginator-extension-2.0.beta1 config/routes.rb