Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
add new routes file
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew vonderLuft committed May 12, 2011
1 parent 58faa6e commit 5c23a2d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions VERSION
@@ -0,0 +1 @@
1.0.0
12 changes: 12 additions & 0 deletions config/routes.rb
@@ -0,0 +1,12 @@
ActionController::Routing::Routes.draw do |map|
if Group.table_exists?
map.namespace :admin do |admin|
admin.resources :groups
end
map.with_options(:controller => 'admin/groups') do |group|
group.remove_admin_group 'admin/groups/:id/remove', :action => 'remove', :conditions => {:method => :get}
group.add_member_admin_group 'admin/groups/:id/add_member', :action => 'add_member', :conditions => {:method => :post}
group.remove_member_admin_group 'admin/groups/:group_id/remove_member/:id', :action => 'remove_member'
end
end
end

0 comments on commit 5c23a2d

Please sign in to comment.