# Call a ruby program clicking a button on a web page

**URL:** <https://www.ruby-forum.com/t/call-a-ruby-program-clicking-a-button-on-a-web-page/169861>\
**Category:** Ruby\
**Created:** [June 9, 2009, 6:44pm UTC](https://www.ruby-forum.com/t/call-a-ruby-program-clicking-a-button-on-a-web-page/169861 "2009-06-09T18:44:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tcblues](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/db5fbb/32.png) [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Post date:** [June 9, 2009, 6:44pm UTC](https://www.ruby-forum.com/t/call-a-ruby-program-clicking-a-button-on-a-web-page/169861/1 "2009-06-09T18:44:04Z")

</div>

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

Thank you.

---

<div class="post-metadata">

**Author:** ![tcblues](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/db5fbb/32.png) [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Post date:** [June 9, 2009, 8:48pm UTC](https://www.ruby-forum.com/t/call-a-ruby-program-clicking-a-button-on-a-web-page/169861/2 "2009-06-09T20:48:56Z")

</div>

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.
