Meilleur gestion de ical.php
This commit is contained in:
parent
b7b37b31e1
commit
fdaab6a562
@ -2,3 +2,4 @@
|
|||||||
|
|
||||||
# Add new mime types for use in respond_to blocks:
|
# Add new mime types for use in respond_to blocks:
|
||||||
# Mime::Type.register "text/richtext", :rtf
|
# Mime::Type.register "text/richtext", :rtf
|
||||||
|
Mime::Type.register "text/calendar", :ics, [], %w(ical)
|
||||||
|
@ -23,7 +23,7 @@ Rails.application.routes.draw do
|
|||||||
resources :tags, only: [ :index, :show ]
|
resources :tags, only: [ :index, :show ]
|
||||||
resources :maps, only: [:index]
|
resources :maps, only: [:index]
|
||||||
|
|
||||||
get 'ical.php' => 'events#index', format: :ics
|
# Respond to rss and ical calls
|
||||||
get ':format.php' => 'events#index'
|
get ':format.php' => 'events#index'
|
||||||
|
|
||||||
devise_for :users, path: '', path_names: {sign_in: 'login', sign_out: 'logout'}
|
devise_for :users, path: '', path_names: {sign_in: 'login', sign_out: 'logout'}
|
||||||
|
Loading…
Reference in New Issue
Block a user