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"