Class: CalMonthsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- CalMonthsController
- Defined in:
- app/controllers/cal_months_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
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_event ⇒ Object
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 |