Class: Admin::CalendarsController

Inherits:
ResourceController
  • Object
show all
Defined in:
app/controllers/admin/calendars_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



5
6
7
8
9
10
# File 'app/controllers/admin/calendars_controller.rb', line 5

def show
  @calendar = Calendar.find(params[:id])
  @year = params[:year] ? params[:year].to_i : Date.today.year
  @month = params[:month] ? params[:month].to_i : Date.today.month
  response_for :singular
end