Current location: Hot Scripts Forums » Programming Languages » Other Languages » Ruby! Sample code!


Ruby! Sample code!

Reply
  #1 (permalink)  
Old 12-02-06, 02:03 AM
Fahad_1 Fahad_1 is offline
Newbie Coder
 
Join Date: Oct 2006
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Ruby! Sample code!

Hello,

Can someone show me a sample of ruby codings?

Thanks.
__________________
Fahad
http://www.frinity.com - a blog from a web addict
Reply With Quote
  #2 (permalink)  
Old 12-02-06, 08:36 AM
pSY cO. pSY cO. is offline
Newbie Coder
 
Join Date: Oct 2006
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Here we go:

Code:
puts "This is a sample of ruby coding"
Or did you mean something more advanced?
__________________
<http://www.psy-co.com>
Reply With Quote
  #3 (permalink)  
Old 12-04-06, 09:02 AM
Fahad_1 Fahad_1 is offline
Newbie Coder
 
Join Date: Oct 2006
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
is "puts" equivalent to "echo" in php?

can u pls reply with 4-5 sample codes with equivalence to php?
That wud hav been of great help.

Thanks.
__________________
Fahad
http://www.frinity.com - a blog from a web addict
Reply With Quote
  #4 (permalink)  
Old 12-04-06, 11:34 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
just google for "ruby tutorial", i'm sure you will find plenty of code samples
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #5 (permalink)  
Old 12-06-06, 11:13 AM
pSY cO. pSY cO. is offline
Newbie Coder
 
Join Date: Oct 2006
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
First off -- I have absolutely zero php knowledge, but I am fluent in Ruby. Although I can edit PHP I can't write it.
__________________
<http://www.psy-co.com>
Reply With Quote
  #6 (permalink)  
Old 12-12-06, 07:45 AM
Fahad_1 Fahad_1 is offline
Newbie Coder
 
Join Date: Oct 2006
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
well, i am quite good in php (look at the codings of my site).

but i am also interested in ruby. dont know how to code tho. LoL
__________________
Fahad
http://www.frinity.com - a blog from a web addict
Reply With Quote
  #7 (permalink)  
Old 12-24-06, 02:35 AM
DennisTT's Avatar
DennisTT DennisTT is offline
Newbie Coder
 
Join Date: Aug 2006
Location: Canada
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
I'm interested in Ruby but I still very confused as to how Ruby on web server works. What files do you upload to the server and how are they called by the browser?
Reply With Quote
  #8 (permalink)  
Old 01-09-07, 12:55 AM
jcabaniss jcabaniss is offline
New Member
 
Join Date: Jan 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by DennisTT
I'm interested in Ruby but I still very confused as to how Ruby on web server works. What files do you upload to the server and how are they called by the browser?
It's just like PHP or Perl.. you upload the scripts, and call them from the browser.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[turnkey] Lyrics site - $149 (LEGAL) rightinpoint General Advertisements 0 10-22-06 04:33 AM
Search script improvement 9999 PHP 14 08-28-06 11:46 PM
Explanation of Code... Please davidk19380 Perl 1 02-26-06 01:50 PM
Have a look at my JSP code which is not giving me the desired output j.gohel Everything Java 1 04-07-05 03:55 AM
How to sale php code to customer without giving him code pradeep_soft PHP 4 03-12-04 12:10 PM


All times are GMT -5. The time now is 03:40 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.