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?


Thanks and Regards,
Amit

Use jQuery. jQuery.ajax() | jQuery API Documentation

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…

On Fri, Aug 12, 2011 at 12:10 PM, Dheeraj K.
[email protected]wrote:

AJAX?
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


Thanks and Regards,
Amit

You’re welcome :slight_smile: