From 90fe1cc995094fae8beaf5ae92826b6e4926035c Mon Sep 17 00:00:00 2001 From: Artem Chernikov Date: Wed, 30 Apr 2014 16:11:14 +0200 Subject: [PATCH] Replace update from member to collection --- config/routes.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index eb88be3a..9523e89e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -27,7 +27,11 @@ Osem::Application.routes.draw do resources :difficulty_levels, only: [:show, :update, :index] resources :rooms, only: [:show, :update, :index] resources :tracks, only: [:show, :update, :index] - resources :eventtypes, only: [:show, :update, :index] + resources :eventtypes, only: [:show, :index] do + collection do + patch :update + end + end resources :social_events, only: [:show, :update, :index] resources :supporter_levels, only: [:show, :update, :index] resources :emails, only: [:show, :update, :index]