Class: GtfsEngine::CalendarsController
Instance Method Summary
collapse
#filter, #index, #show
#data, #data_cache, #param_is_data_set_name?
Instance Method Details
#dates ⇒ Object
26
27
28
29
|
# File 'app/controllers/gtfs_engine/calendars_controller.rb', line 26
def dates
@dates = record.dates
render(:dates)
end
|
#for_date ⇒ Object
19
20
21
22
23
24
|
# File 'app/controllers/gtfs_engine/calendars_controller.rb', line 19
def for_date
date = params[:YYYY_MM_DD]
check_format!(date)
@records = Calendar.from_date_string(date)
respond_with(@records, template: 'gtfs_engine/gtfs/index')
end
|