From 183da61f3fc8ce601ff955a173bde5d13eca51c6 Mon Sep 17 00:00:00 2001 From: echarp Date: Sat, 19 Jul 2014 09:34:05 +0200 Subject: [PATCH] Erreur dans l'ordre des directives de redirect php --- config/routes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 40664d9e..e38236ae 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -25,10 +25,10 @@ Rails.application.routes.draw do # Manage former php pages get 'showevent.php', to: redirect { |params, request| "events/#{request.params[:id]}" } - # Respond to rss and ical calls - get '(:format).php', to: redirect { |params, request| "events.#{request.format.to_sym}?#{request.query_string}" } # A mechanism to list "all" events get '(:format)listevents.php', to: redirect { |params, request| "events.#{request.format.to_sym}?#{request.query_string}" } + # Respond to rss and ical calls + get '(:format).php', to: redirect { |params, request| "events.#{request.format.to_sym}?#{request.query_string}" } devise_for :users, path: '', path_names: {sign_in: 'login', sign_out: 'logout'} devise_for :admin_users, ActiveAdmin::Devise.config