Ajax Call, JavaScript, Ruby on Rails, Controller.
/app/views/students/destroy.js.erb let delete<%= @student.id %> = document.querySelector("#deleteStudent" + <%= @student.id %>); delete<%= @student.id %>.remove(); By having the action of destroy defined in the controller, I am allowing the user once they clicked on the button, to make the request