Skip to content

Instantly share code, notes, and snippets.

@bturnbull
Created September 6, 2010 18:42
Show Gist options
  • Save bturnbull/567366 to your computer and use it in GitHub Desktop.
Save bturnbull/567366 to your computer and use it in GitHub Desktop.
map.resources :teams, :member => {:review => :get, :completed => :any, :disqualify => :put, :post_receive_hook => :post},
:collection => {:statistics => :get, :dashboard => :get, :search => :get} do |team|
team.resources :invites, :controller => 'team_invites'
team.resources :comments, :controller => 'comments'
team.resources :verification_results, :as => 'verification-results', :only => [:index, :show, :create]
team.resources :members, :controller => 'teams', :only => [:destroy]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment