Ajax Call, JavaScript, Ruby on Rails, Controller.
to the correct HTTP request.” Once the appropriate path has been given, the action goes to the controller method and looks for the view where is it been sent to, in this case, it is going to be rendered to format.js which points to the destroy.js.erb. This view is telling the application to look