diff --git a/config/routes.rb b/config/routes.rb --- a/config/routes.rb +++ b/config/routes.rb @@ -6,7 +6,7 @@ resources :contests resources :announcements - match 'announcements/toggle/:id' => 'announcements#toggle', via: :put + match 'announcements/toggle/:id' => 'announcements#toggle' resources :sites