I want to print a JSON object in the browser's console, I searched a lot but I din't find any appropriate result.
Here is my ruby controller:
class ScheduleTime < ApplicationController
available_schedule = ScheduleTimeSlot.where(:doctor_id => params[:dr_id],:date=>params[:for_date].to_date,:status=>"vacant",:archive=>false).reorder(:start_time)
render :json =>{:available_schedules=>available_schedules}
//here I need a syntax that print the available_schedule on browser console (if possible) or ruby console, so I can debug it properly.
end
Thanks In Advance