tags:

views:

44

answers:

1

so now (finally after 4 hours) i have installed ruby 1.9.1, rvm and passenger.

but how do i use ruby with http?

in php you just embed php with html in a .php file.

how do you do it with ruby (note: i dont want to use frameworks for that, just pure ruby + html to learn how it works).

thanks

+2  A: 

You can use the CGI class for that. The documentation is here with some examples Ruby CGI doc

nas