Rails is very friendly for debugging by logging the request info and sql query. Developers can use tail -F command to watch the log for keeping in mind that what is framework doing in background. Cake put the sql query on the bottom of the page. Usually it's helpful. But in some case it's helpless.Such as performing a delete action or get data by AJAX. I will show you how to make Cake acts as