Ruby call from javascript

Is there a way to call the jruby function from javascript, let's say that I need my user interface to be on the browser side.

Note. I do not use Ruby on Rails

~ Eder Quiñones

+4
source share
2 answers

Short answer

No.

Long answer

You can create a server-side application and invoke it through AJAX.

UPD

And yes: How to create a Java applet using JRuby? : D

+2
source

Not directly. But you can use AJAX to send a request for ruby ​​code on an internal server. This code can then send data to the interface module in an AJAX response (for example, like JSON).

+2
source

All Articles