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

Join 86,392 Programmers. There are 1,408 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

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



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
+Quote Post


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


D.I.C Head

Group Icon
Joined: 16 Oct, 2006
Posts: 186

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
+Quote Post

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


New D.I.C Head

*
Joined: 14 Sep, 2006
Posts: 7

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
+Quote Post

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


g++ -o drink whiskey.cpp

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

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 online!Profile CardPM
Go to the top of the page
+Quote Post

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


D.I.C Head

Group Icon
Joined: 18 Jul, 2006
Posts: 180

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
+Quote Post

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


New D.I.C Head

*
Joined: 19 Nov, 2006
Posts: 2

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
+Quote Post

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


New D.I.C Head

*
Joined: 2 Jun, 2007
Posts: 2

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
+Quote Post

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


New D.I.C Head

*
Joined: 10 Sep, 2007
Posts: 3

icon_up.gif
thnx a lot
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 5/17/08 05:09AM

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