How to call ruby script using AJAX?

Dear all,

I need your help. Could someone tell me - how to call ruby script using AJAX?

I want to call ruby script from my HTML code using AJAX. Could you suggest me the way to do so?

Use jQuery. http://api.jquery.com/jQuery.ajax/

You’ll need to provide a route, and in the server side, call the ruby script in the controller’s action which receives the route.

Thanks…Dheeraj. It’s really helpful. Thank you so much…

You’re welcome :slight_smile: