Where to save ruby file?

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
sarbas
Forum Commoner
Posts: 64
Joined: Thu Jan 04, 2007 5:51 am

Where to save ruby file?

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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
Post Reply