Mercurial > hg > soundsoftware-site
diff config/routes.rb @ 1141:c852c89f5de1 redmine-2.2-integration
Restore members route (in addition to memberships) to avoid changing URLs
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Thu, 10 Jan 2013 15:23:50 +0000 |
parents | 77f703281e14 |
children | e1f00c0ed8ff |
line wrap: on
line diff
--- a/config/routes.rb Thu Jan 10 15:23:35 2013 +0000 +++ b/config/routes.rb Thu Jan 10 15:23:50 2013 +0000 @@ -98,6 +98,11 @@ match 'copy', :via => [:get, :post] end + resources :members, :shallow => true, :controller => 'members', :only => [:index, :show, :new, :create, :update, :destroy] do + collection do + get 'autocomplete' + end + end resources :memberships, :shallow => true, :controller => 'members', :only => [:index, :show, :new, :create, :update, :destroy] do collection do get 'autocomplete'