From d8fa661c90bc79315a0acb2049bd4e9b82b4aa10 Mon Sep 17 00:00:00 2001 From: Tom Staubitz Date: Wed, 18 Jan 2017 10:52:24 +0100 Subject: [PATCH] changed back "action" to "to" in routes --- config/routes.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index b4606f74..0683a6f1 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -3,7 +3,7 @@ FILENAME_REGEXP = /[\w\.]+/ unless Kernel.const_defined?(:FILENAME_REGEXP) Rails.application.routes.draw do resources :file_templates do collection do - get 'by_file_type/:file_type_id', as: :by_file_type, action: :by_file_type + get 'by_file_type/:file_type_id', as: :by_file_type, to: :by_file_type end end resources :code_harbor_links @@ -42,7 +42,7 @@ Rails.application.routes.draw do resources :execution_environments do member do get :shell - post 'shell', as: :execute_command, action: :execute_command + post 'shell', as: :execute_command, to: :execute_command get :statistics end @@ -94,14 +94,14 @@ Rails.application.routes.draw do resources :submissions, only: [:create, :index, :show] do member do - get 'download', as: :download, action: :download - get 'download/:filename', as: :download_file, constraints: {filename: FILENAME_REGEXP}, action: :download_file - get 'render/:filename', as: :render, constraints: {filename: FILENAME_REGEXP}, action: :render_file - get 'run/:filename', as: :run, constraints: {filename: FILENAME_REGEXP}, action: :run + get 'download', as: :download, to: :download + get 'download/:filename', as: :download_file, constraints: {filename: FILENAME_REGEXP}, to: :download_file + get 'render/:filename', as: :render, constraints: {filename: FILENAME_REGEXP}, to: :render_file + get 'run/:filename', as: :run, constraints: {filename: FILENAME_REGEXP}, to: :run get :score get :statistics post :stop - get 'test/:filename', as: :test, constraints: {filename: FILENAME_REGEXP}, action: :test + get 'test/:filename', as: :test, constraints: {filename: FILENAME_REGEXP}, to: :test end end