From 8a2b2c14289cbb80e10e0378fbc30c3dd6f81c9f Mon Sep 17 00:00:00 2001 From: Berry Goudswaard Date: Thu, 16 Oct 2014 20:17:09 +0200 Subject: [PATCH] An array should be passed to allowMethod to allow multiple methods --- src/Template/Bake/default/actions/controller_actions.ctp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Template/Bake/default/actions/controller_actions.ctp b/src/Template/Bake/default/actions/controller_actions.ctp index 5f65b54fce3..960886adbf5 100644 --- a/src/Template/Bake/default/actions/controller_actions.ctp +++ b/src/Template/Bake/default/actions/controller_actions.ctp @@ -132,7 +132,7 @@ $allAssociations = array_merge( */ public function delete($id = null) { $ = $this->->get($id); - $this->request->allowMethod('post', 'delete'); + $this->request->allowMethod(['post', 'delete']); if ($this->->delete($)) { $this->Flash->success('The has been deleted.'); } else {