At the Forge - Getting Started with Ruby

What's behind all the Ruby hype? Reuven walks us through a couple of examples to let the code speak for itself.


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Setting up a Linux Rails Development Environment

Jim Rutherford's picture

If you looking to give Rails a try on linux, checkout my tutorial on Installing Ruby on Rails with Lighttpd and MySQL on Fedora Core 4


indention in CGI code

Robby Russell's picture

Is the weird indenting in the CGI example intentional?

A few python pals looked at that and immediately thought it might be some Ruby-ism. I showed them an example like this to clear up the confusion:

nevermind, linuxjournal doesn't allow a pre tag so my indenting doesn't stay in the comment. I'd prefer not confuse anyone else. :-)

indents in ruby are 2 spaces

Anonymous's picture

indents in ruby are 2 spaces...if you want the community to like you.


Eric Anderson's picture

Thanks for the quick intro, it's a good starting point for server-side Java developers. I'm looking forward to the Rails article.

One thing though: how about a look into the Ruby debugging environment. What tools/approaches do I use to debug complex server-side Ruby applications? I hope the answer is not "use print statements" ... effectively taking us back to the Dark Ages of programming. I like the idea of object-oriented scripting, but do not like the idea of _not_ having tools as powerful as say, the Eclipse or Netbeans debuggers for my work.

You can use Eclipse, for sure :o)

mpathy's picture

There is a very nice plugin for eclipse I use.

Use the Eclipse Update Manager with this URL:

There is a Test::Unit included.
Thats what you need (if I understood you right).

Try Ruby on Rails

michael's picture

RoR has a console for debugging purposes which allows you to directly interact with your development model.