Class: Eboshi::CalendarController

Inherits:
ApplicationController show all
Defined in:
app/controllers/eboshi/calendar_controller.rb

Instance Method Summary collapse

Methods included from ShallowRouteHelper

#assignment_path, #assignments_path, #convert_work_path, #edit_adjustment_path, #edit_invoice_path, #edit_work_path, #invoice_path, #invoices_path, #line_item_path, #merge_works_path, #new_adjustment_path, #new_assignment_path, #new_invoice_path, #new_payment_path, #payments_path, #work_path

Instance Method Details

#indexObject



3
4
5
6
7
8
9
# File 'app/controllers/eboshi/calendar_controller.rb', line 3

def index
  @date = begin
            Date.parse("#{params[:year]}/#{params[:month]}/1")
          rescue
            Date.today
          end
end