From 82d764e340dd94be0745e34dbe2b322e8a139be5 Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Thu, 22 Nov 2018 00:58:13 +0100 Subject: [PATCH] Move tour_de_france to the root controller --- app/controllers/root_controller.rb | 3 +++ app/controllers/tour_de_france_controller.rb | 6 ------ .../index.html.haml => root/tour_de_france.html.haml} | 0 config/routes.rb | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) delete mode 100644 app/controllers/tour_de_france_controller.rb rename app/views/{tour_de_france/index.html.haml => root/tour_de_france.html.haml} (100%) diff --git a/app/controllers/root_controller.rb b/app/controllers/root_controller.rb index d285f2104..37aa15e81 100644 --- a/app/controllers/root_controller.rb +++ b/app/controllers/root_controller.rb @@ -58,4 +58,7 @@ class RootController < ApplicationController def suivi end + + def tour_de_france + end end diff --git a/app/controllers/tour_de_france_controller.rb b/app/controllers/tour_de_france_controller.rb deleted file mode 100644 index 872db9ada..000000000 --- a/app/controllers/tour_de_france_controller.rb +++ /dev/null @@ -1,6 +0,0 @@ -class TourDeFranceController < ApplicationController - layout 'new_application' - - def index - end -end diff --git a/app/views/tour_de_france/index.html.haml b/app/views/root/tour_de_france.html.haml similarity index 100% rename from app/views/tour_de_france/index.html.haml rename to app/views/root/tour_de_france.html.haml diff --git a/config/routes.rb b/config/routes.rb index a271f6172..8d4418f83 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -130,7 +130,7 @@ Rails.application.routes.draw do post ':position/carte', to: 'carte#show', as: :carte end - get 'tour-de-france' => 'tour_de_france#index' + get 'tour-de-france' => 'root#tour_de_france' get "patron" => "root#patron" get "suivi" => "root#suivi"