Welcome to Dream.In.Code
Getting Help is Easy!

Join 119,729 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,334 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Ruby - Getting Started

 
Reply to this topicStart new topic

Ruby - Getting Started

pdesigns
post 25 Oct, 2006 - 01:39 PM
Post #1


New D.I.C Head

*
Joined: 14 Sep, 2006
Posts: 7


My Contributions


I've heard about Ruby and have wanted to learn to use it and have a host that supports it but I have a question.

I've seen many tutorials on it but they seem to use command line to run ruby scripts and such so am wondering how this works when I am under a shared server.

How exactly would I get started with Ruby? Creating a ruby script and executing it I mean. I've seen .rb files but what do you do with those?

Anyone want to fill me in on some details? Thanks.
User is offlineProfile CardPM

Go to the top of the page


rockstar_
post 25 Oct, 2006 - 03:57 PM
Post #2


D.I.C Head

Group Icon
Joined: 16 Oct, 2006
Posts: 187



Dream Kudos: 275
My Contributions


QUOTE(pdesigns @ 25 Oct, 2006 - 01:39 PM) *

How exactly would I get started with Ruby? Creating a ruby script and executing it I mean. I've seen .rb files but what do you do with those?

Anyone want to fill me in on some details? Thanks.

I assume you're in a Windows environment, so here's a link for something you might want to take a look at. Goes from the ground up getting started.

http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html
User is offlineProfile CardPM

Go to the top of the page

pdesigns
post 26 Oct, 2006 - 10:03 AM
Post #3


New D.I.C Head

*
Joined: 14 Sep, 2006
Posts: 7


My Contributions


QUOTE(rockstar_ @ 25 Oct, 2006 - 03:57 PM) *

QUOTE(pdesigns @ 25 Oct, 2006 - 01:39 PM) *

How exactly would I get started with Ruby? Creating a ruby script and executing it I mean. I've seen .rb files but what do you do with those?

Anyone want to fill me in on some details? Thanks.

I assume you're in a Windows environment, so here's a link for something you might want to take a look at. Goes from the ground up getting started.

http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html


Sorry, I forgot to specify that I'm using a Linux server. Shared hosting under a linux box and my host says it supports Ruby on Rails but how exactly do I utilize it?
User is offlineProfile CardPM

Go to the top of the page

Amadeus
post 26 Oct, 2006 - 10:09 AM
Post #4


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 11,929



Thanked 24 times

Dream Kudos: 25
My Contributions


You run a ruby script by calling it through the command line interface (one way), but are you asking about building command line ruby applications, or building web applications?
User is offlineProfile CardPM

Go to the top of the page

k0b13r
post 6 Nov, 2006 - 01:25 AM
Post #5


D.I.C Head

Group Icon
Joined: 18 Jul, 2006
Posts: 185



Thanked 1 times

Dream Kudos: 250
My Contributions


Ruby can be interpreted by command line (type 'irb' in your shell), but it's possible to run scripts too (.rb extension)

You can learn everything you need on this sites:
http://www.ruby-lang.org/en/ (Official Ruby site, everything you need)
http://www.rubygarden.org/faq/ (Good Ruby FAQ)
http://www.ruby-lang.org/en/documentation/ (Direct link to documentation)


You need to download interpreter of course, here are the links:
ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.5.tar.gz (Source code for Linux)
http://rubyforge.org/frs/download.php/12751/ruby185-21.exe (One-click installer for Windows)

GL & HF with this superb language smile.gif
User is offlineProfile CardPM

Go to the top of the page

Huw
post 19 Nov, 2006 - 04:49 AM
Post #6


New D.I.C Head

*
Joined: 19 Nov, 2006
Posts: 2


My Contributions


You can download a free copy of the eBook which I wrote to help newcomers to Ruby, The Little Book Of Ruby. It's ten chapters - starst with "hello world" and goes on to cover most of the essentials (classes, blocks, modules, mixins, YAMl etc.) - you can also download a zip of all the source code to go with the example programs.

Get a copy here: http://www.sapphiresteel.com/The-Little-Book-Of-Ruby

best wishes
Huw
User is offlineProfile CardPM

Go to the top of the page

IndianGuru
post 2 Jun, 2007 - 07:36 PM
Post #7


New D.I.C Head

*
Joined: 2 Jun, 2007
Posts: 2


My Contributions


You can download my Free Ruby Study Notes eBook. This is based on my site on Learning Ruby.
User is offlineProfile CardPM

Go to the top of the page

Alinux
post 10 Sep, 2007 - 07:05 AM
Post #8


New D.I.C Head

*
Joined: 10 Sep, 2007
Posts: 3


My Contributions


icon_up.gif
thnx a lot
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 10/15/08 04:26PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month