Class: CalMonthsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/cal_months_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



3
4
5
# File 'app/controllers/cal_months_controller.rb', line 3

def show
  @cal_month = CalMonth.fetch_month(params[:year], params[:month])
end

#show_current_eventObject



7
8
9
# File 'app/controllers/cal_months_controller.rb', line 7

def show_current_event
  @current_event = CalMonth.upcoming_events[params[:id].to_i]
end