Page 1 of 1

Where to save ruby file?

Posted: Tue Feb 13, 2007 8:25 am
by sarbas
Hi, I am new guy about ruby.

I download ruby and install in my computer, right now I can run ruby in Terminal window

Code: Select all

[root@dhcppc0 public]# ruby new.rb
I getting the correct output for this file. If i type ruby -v, its also work. But I don't know how to view this file in my web browser. When point this file in my browser its just asked me to download that file. where I should save it in order to run it in web browser.

I tried like this

Code: Select all

localhost://new.rb
My file new.rb is now in /root/test/public/

Thanks with regards,
Veeraa

Posted: Tue Feb 13, 2007 9:26 am
by volka
Did you do anything to introduce ruby to your webserver?
Take a look at e.g. http://www.theblatherskite.com/articles ... ght-tpd-ly