Ajax Call, JavaScript, Ruby on Rails, Controller.
/app/views/students/destroy.html.erb format.js #when responding to a json request, it will respond by generating js code located in /app/views/students/destroy.js.erb end end ... end It all depends on how we set the respond_to, on which method, and what is the end goal for the call. #