Call a ruby program clicking a button on a web page


#1

How is possible to call a ruby program clicking a button on a web page?

Thank you.


#2

Mario R. wrote:

How is possible to call a ruby program clicking a button on a web page?

Thank you.

Locally?

Mhh make up a mime type, return a file with the needed info in it, and
return it using that made up mime.

FIrst time you try to open the file in your browser, it’ll ask for the
program to use to open it. There choose your ruby program.

If you’re talking about a ruby program on the server, well, make up a
rails, rack, sinatra or whatever is appropriate.