Implemented AJAX using js-routes gem.