User role and sub_role simple interface complete

This commit is contained in:
Matthew Fu authored and Christophe Vilayphiou committed 2012-01-24 12:28:33 +08:00
1 parent 25cbe0c2a5
commit afbb9e266a
4 files changed
+88 -12

No files matched your search

+7 -1
View File
@@ -12,7 +12,7 @@ PrototypeR4::Application.routes.draw do
# routes for admin
namespace :admin do
resources :assets
resources :app_auths
resources :app_auths
resources :designs do
collection do
@@ -39,6 +39,12 @@ PrototypeR4::Application.routes.draw do
end
end
resources :module_apps do
resources :app_auths do
member do
match 'remove/:type/:target_id' ,:action=> 'remove',:via => "delete",:as =>:remove
end
end
member do
match 'assign_manager' ,:action=> 'assign_manager',:via => "post",:as =>:assign_manager
match 'assign_sub_manager' ,:action=> 'assign_sub_manager',:via => "post",:as =>:assign_sub_manager