Ajax Call, JavaScript, Ruby on Rails, Controller.
/app/views/instructors/index.js.erb let instructorsUl = document.querySelector("ul#instructors") # Ruby code will get executed, and this will communicate with the front-end via javascript. <% @instructors.each do |instructor| %> instructorLi = document.createElement("li") instructorLi.id =