# Starting Ruby

**URL:** <https://www.ruby-forum.com/t/starting-ruby/65746>\
**Category:** Ruby\
**Created:** [February 11, 2006, 7:25am UTC](https://www.ruby-forum.com/t/starting-ruby/65746 "2006-02-11T07:25:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anil](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/da6949/32.png) [@anil](https://www.ruby-forum.com/u/anil)\
**Post date:** [February 11, 2006, 7:25am UTC](https://www.ruby-forum.com/t/starting-ruby/65746/1 "2006-02-11T07:25:31Z")

</div>

Hi,  
i m a web-developer(php).I just started learning ruby.  
I already tried basic tutorials online.I also installed ruby on my  
machine(fedora).  
But i since not understand where i have to write ruby code & how to  
execute it on my machine.(as like php i use zend for writing code &  
apache to executing it).  
Please help me.

---

<div class="post-metadata">

**Author:** ![anil](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/da6949/32.png) [@anil](https://www.ruby-forum.com/u/anil)\
**Post date:** [February 11, 2006, 8:05am UTC](https://www.ruby-forum.com/t/starting-ruby/65746/2 "2006-02-11T08:05:24Z")

</div>

Howdy!  
All you simply need to do is start up your console and enter the  
following  
command:

rails project\_name

Where project\_name is the name of the project that you are currently  
working  
on. Be sure that you are in the directory that you’d like all your  
files to  
be created in. For example, I have a directory in my home directory  
labeled  
“rails” where I keep all my rails projects. To run the WEBrick server  
(what  
you’ll need up and running to view your project in the works) simply  
enter  
the new directory where your project was just created and enter the  
following command:

ruby script/server

Here’s an example of everything you’d need to do:

mkdir rails  
cd rails  
rails test\_app  
(long print out of files created)  
cd test\_app  
ruby script/server

Your rails project should be up and running! Check it out here  
[http://localhost:3000/](http://localhost:3000/)

I hope this helps!

Adam

---

<div class="post-metadata">

**Author:** ![anil](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/da6949/32.png) [@anil](https://www.ruby-forum.com/u/anil)\
**Post date:** [February 11, 2006, 9:21am UTC](https://www.ruby-forum.com/t/starting-ruby/65746/3 "2006-02-11T09:21:24Z")

</div>

Hi,

Thank you very much.  
Now i successfully executing my ruby files.

Thanks once again.  
I hopeful for your help nexttine.

Can you suggest me good editor for ruby like zend for php?

---

<div class="post-metadata">

**Author:** ![anil](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/da6949/32.png) [@anil](https://www.ruby-forum.com/u/anil)\
**Post date:** [February 11, 2006, 9:37am UTC](https://www.ruby-forum.com/t/starting-ruby/65746/4 "2006-02-11T09:37:33Z")

</div>

ani vadhavane wrote:

> 

For actually writing ruby code and running it you can use the command

irb

This is the interactive environment for ruby.

Another useful command is

ri [object]

this lets you see what the methods are for each object - very handy when  
you are starting out

The other advice you received is more for “ruby on rails” web  
applications - please be aware that there are separate mailing lists for  
both ruby (by itself - this one) and ruby on rails. This mailing list  
is mainly for ruby (by itself), the rails mailing list[1] is mainly for  
developing web applications with ruby with the rails framework.

There are many good editors for ruby (sorry I don’t know zend or php) -  
my personal favourite is probably vi(m) or scite (on windows) - of  
course emacs works really well too. Commercially - Komodo from  
ActiveState has ruby support now and Arachno(sp??) is a good editor if  
you don’t mind paying.

I’d suggest that as a php developer, you also subscribe to the rails  
mailing list as you’ll be exposed more to the web apps part of ruby that  
way and as you know php, this will probably help you understand ruby  
within the context of web development. Ruby-talk is a great place to  
hang around for advice on good ruby idiom and style, but most rails  
specific posts should go to the separate list. When you feel  
comfortable, you can even try the ruby quiz. There are also other web  
frameworks for ruby that you may want to try (Nitro+Og for example) or  
the very small Camping from \_why.

Feel free to look around the ruby universe - it’s not just Rails  
(although I must admit it seems to be the main reason people are picking  
up ruby right now)

Thanks  
Kev  
[1] removed\_email\_address@domain.invalid  
[2] [www.rubyquiz.com](http://www.rubyquiz.com)

---

<div class="post-metadata">

**Author:** ![anil](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/da6949/32.png) [@anil](https://www.ruby-forum.com/u/anil)\
**Post date:** [February 12, 2006, 1:52am UTC](https://www.ruby-forum.com/t/starting-ruby/65746/5 "2006-02-12T01:52:08Z")

</div>

> space after punctuation. The Pedants of the Universe thank you.
> 
> David V.

If you are using eclipse anyway, you could also give “rubyeclipse”  
([rubyeclipse.sf.net](http://rubyeclipse.sf.net)) a try. If you’re not using eclipse, I wouldn’t  
bother installing it only for ruby.  
Jedit has a ruby plugin too ([Ruby Editor Plugin for jEdit](http://jedit.org/ruby)).

Alexis.

---

<div class="post-metadata">

**Author:** ![anil](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/da6949/32.png) [@anil](https://www.ruby-forum.com/u/anil)\
**Post date:** [February 14, 2006, 3:08am UTC](https://www.ruby-forum.com/t/starting-ruby/65746/6 "2006-02-14T03:08:31Z")

</div>

> Can you suggest me good editor for ruby like zend for php?

The Zeus for Windows IDE can handle Ruby:

[Zeus IDE - Programming environment for Windows developers](http://www.zeusedit.com/ruby.html)

It offers features like syntax highlighting, code folding,  
class browsing, macro scripting, intergrated version control,  
smart indenting, project/workspace management etc etc.

You can even write Zeus macros using Ruby 😉

Note: Zeus is shareware (45 day trial).

Jussi Jumppanen  
Author: Zeus for Windows

---

<div class="post-metadata">

**Author:** ![anil](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/da6949/32.png) [@anil](https://www.ruby-forum.com/u/anil)\
**Post date:** [February 11, 2006, 11:03pm UTC](https://www.ruby-forum.com/t/starting-ruby/65746/7 "2006-02-11T23:03:13Z")

</div>

DÅ?a Sobota 11 FebruÃ¡r 2006 09:21 ani vadhavane napÃ­sal:

> Can you suggest me good editor for ruby like zend for php?

If you want something along the lines of an IDE, try either FreeRIDE or  
KDevelop if you don’t feel like paying for it.

Please write out words like "and" in full. You also capitalize "I" and put a space after punctuation. The Pedants of the Universe thank you.

David V.
