class TopicsController
Attributes
view[R]
Public Class Methods
new()
click to toggle source
# File lib/dbc_today/controllers/topics_controller.rb, line 7 def initialize @view = TopicsView.new end
Public Instance Methods
show_topics(phase, week, day)
click to toggle source
# File lib/dbc_today/controllers/topics_controller.rb, line 11 def show_topics(phase, week, day) topics = Topic.where(phase: phase, week: week, day: day) puts view.render_topics(topics) end