Forum: Ruby call a ruby program clicking a button on a web page

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Mario R. (Guest)
on 2009-06-09 20:44
How is possible to call a ruby program clicking a button on a web page?

Thank you.
Gabriel M. (Guest)
on 2009-06-09 22:48
(Received via mailing list)
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.
This topic is locked and can not be replied to.