diff options
-rw-r--r-- | app/controllers/admin/participants_controller.rb | 4 | ||||
-rw-r--r-- | config/routes.rb | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/app/controllers/admin/participants_controller.rb b/app/controllers/admin/participants_controller.rb index e2af77e..5e1c8cd 100644 --- a/app/controllers/admin/participants_controller.rb +++ b/app/controllers/admin/participants_controller.rb @@ -24,10 +24,6 @@ class Admin::ParticipantsController < ApplicationController # TODO verify http methods - def default - redirect_to admin_participants_path - end - def index list render :action => 'list' diff --git a/config/routes.rb b/config/routes.rb index bef9b0c..915db53 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -58,8 +58,8 @@ resources :events, :only => [:index] do match :fifo, :via => [:get, :post], :on => :collection end -get '/admin' => 'admin/participants#index' -root 'admin/participants#default' +get '/admin', to: redirect('admin/participants'), protocol: '//' +root to: redirect('admin/participants'), protocol: '//' # The priority is based upon order of creation: first created -> highest priority. |