How to call the Ruby Script using HTML?

Hi,

I am new to Ruby. I want to use Ruby in browser and integrate it with HTML. Could somebody help me to do so? Please suggest me how to achieve this?

I want to use my code in call my Ruby script with the help of HTML code. Is it possible?

FYI: I am not using RAILS. I am using Ruby and Watir to automate the my web applications.

If you want to integrate Ruby code with an HTML interface, you basically have a couple of options: CGI and Rack (which is just a much more modern implementation of CGI, IMO). There were tons of examples of both on Google last time I checked. Either of these will provide you a way to map Web form inputs to the Ruby script's STDIN interface.

Walter

You cannot call ruby within the browser, you have to use javascript or similar. You can of course make requests to the server in the normal way, where you can use ruby.

Colin

Amit Bobade wrote in post #1014173:

I want to use my code in call my Ruby script with the help of HTML code. Is it possible?

FYI: I am not using RAILS.

Then why are you posting your question in a rails forum?