Ajax Call, JavaScript, Ruby on Rails, Controller.
for generating the JSON code to respond to the client on the front-end. Rails can make use of JSON Response using the concept of remote true, this is enabled by default in rails, and it will reduce the amount of Js code for the action to work. #/app/contollers/students_controller.rb class