Petit ajout pour gérer des urls en icalevent.php

This commit is contained in:
echarp 2014-07-19 09:39:10 +02:00
parent 183da61f3f
commit a09a904c0b

View File

@ -28,6 +28,8 @@ Rails.application.routes.draw do
# A mechanism to list "all" events # A mechanism to list "all" events
get '(:format)listevents.php', to: redirect { |params, request| "events.#{request.format.to_sym}?#{request.query_string}" } get '(:format)listevents.php', to: redirect { |params, request| "events.#{request.format.to_sym}?#{request.query_string}" }
# Respond to rss and ical calls # Respond to rss and ical calls
get '(:format)event.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}" } 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 :users, path: '', path_names: {sign_in: 'login', sign_out: 'logout'}