Class: Spina::Conferences::PrimerTheme::ConferencesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Spina::Conferences::PrimerTheme::ConferencesController
- Defined in:
- app/controllers/spina/conferences/primer_theme/conferences_controller.rb
Overview
User-facing controller for conferences, serving both html and ics
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#index ⇒ Object
11 12 13 14 15 16 17 |
# File 'app/controllers/spina/conferences/primer_theme/conferences_controller.rb', line 11 def index @conferences = Admin::Conferences::Conference.sorted.includes(institutions: [:logo]) respond_to do |format| format.html format.ics { render body: @conferences.to_ics } end end |
#show ⇒ Object
19 20 21 22 23 24 25 |
# File 'app/controllers/spina/conferences/primer_theme/conferences_controller.rb', line 19 def show @conference.name respond_to do |format| format.html format.ics { render body: @conference.to_ics } end end |