class EventsController

Attributes

view[R]

Public Class Methods

new() click to toggle source
# File lib/dbc_today/controllers/events_controller.rb, line 8
def initialize
  @view = EventsView.new
end

Public Instance Methods

show_schedule(phase, week, day) click to toggle source
# File lib/dbc_today/controllers/events_controller.rb, line 12
def show_schedule(phase, week, day)
  events = Event.where(phase: phase, week: week, day: day)
  puts view.render_events(events)
end