Sha256: 14a6965763ebbceb819b37bb0c27e62b57d946d6f165a8823863d6ae9448a524
Contents?: true
Size: 1.54 KB
Versions: 4
Compression:
Stored size: 1.54 KB
Contents
Rails.application.routes.draw do namespace :admin do root :to => 'dashboards#index' get 'dashboards', :as => 'dashboards' resources :structures do post :rebuild, :on => :collection resource :static_page end resources :users do post :batch, :on => :collection post :activate, :suspend, :send_welcome, :on => :member end resources :assets, :only => [:create, :destroy] do post :rotate, :main, :crop, :on => :member post :sort, :on => :collection end resource :settings, :only => [:edit, :update] do post :cache_clear, :on => :collection end resource :locators do post :prepare, :reload, :on => :collection end resources :admin_comments post 'translate' => AbAdmin::I18nTools::TranslateApp controller 'manager' do scope '(/:parent_resource/:parent_id)/:model_name' do get '/new', :to => :new, :as => 'new' post '/batch', :to => :batch, :as => 'batch' post '/rebuild', :to => :rebuild, :as => 'rebuild' match '/custom_action', :to => :custom_action, :as => 'collection_action' scope ':id' do get '/edit', :to => :edit, :as => 'edit' match '/custom_action', :to => :custom_action, :as => 'member_action' get '/', :to => :show, :as => 'show' put '/', :to => :update, :as => 'update' delete '/', :to => :destroy, :as => 'destroy' end get '/', :to => :index, :as => 'index' post '/', :to => :create, :as => 'create' end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ab_admin-0.2.3 | config/routes.rb |
ab_admin-0.2.2 | config/routes.rb |
ab_admin-0.2.1 | config/routes.rb |
ab_admin-0.2.0 | config/routes.rb |