Method: AppointmentsController#index
- Defined in:
- lib/generators/appointments/templates/appointments_controller.rb
#index ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/generators/appointments/templates/appointments_controller.rb', line 3 def index date_from_ajax = params[:matched_date] reduce = Appointment.where(:date => date_from_ajax) hour_on_date = reduce.collect {|x| x.hour} @new_dates = hour_on_date render :layout => false end |