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.
···
--
Posted via http://www.ruby-forum.com/.
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/
I hope this helps!
Adam
···
On 2/11/06 1:25 AM, "ani vadhavane" <vadhavane_anil@india.com> wrote:
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.
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?
···
--
Posted via http://www.ruby-forum.com/.
ani vadhavane wrote:
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?
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] rails@lists.rubyonrails.org
[2] www.rubyquiz.com
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.
<anal-retention>
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.
</anal-retention>
David Vallner
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
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 ![:wink: :wink:](https://emoji.discourse-cdn.com/twitter/wink.png?v=12)
Note: Zeus is shareware (45 day trial).
Jussi Jumppanen
Author: Zeus for Windows
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.
<anal-retention>
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.
</anal-retention>
David Vallner
If you are using eclipse anyway, you could also give "rubyeclipse"
(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 (jedit.org/ruby).
Alexis.