Class: Spina::Conferences::PrimerTheme::ConferencesController

Inherits:
ApplicationController
  • Object
show all
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

#cookies_info

Instance Method Details

#indexObject



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

#showObject



19
20
21
22
23
24
25
# File 'app/controllers/spina/conferences/primer_theme/conferences_controller.rb', line 19

def show
  add_breadcrumb @conference.name
  respond_to do |format|
    format.html
    format.ics { render body: @conference.to_ics }
  end
end