diff --git a/config/initializers/mime_types.rb b/config/initializers/mime_types.rb index dc189968..1713c24f 100644 --- a/config/initializers/mime_types.rb +++ b/config/initializers/mime_types.rb @@ -2,3 +2,4 @@ # Add new mime types for use in respond_to blocks: # Mime::Type.register "text/richtext", :rtf +Mime::Type.register "text/calendar", :ics, [], %w(ical) diff --git a/config/routes.rb b/config/routes.rb index 3a8afbea..d0e1ba52 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -23,7 +23,7 @@ Rails.application.routes.draw do resources :tags, only: [ :index, :show ] resources :maps, only: [:index] - get 'ical.php' => 'events#index', format: :ics + # Respond to rss and ical calls get ':format.php' => 'events#index' devise_for :users, path: '', path_names: {sign_in: 'login', sign_out: 'logout'}