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.
______________________

Comments

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

Cheers!

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.

Thanks

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:
http://rubyeclipse.sf.net/updatesite

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.

White Paper
Linux Management with Red Hat Satellite: Measuring Business Impact and ROI

Linux has become a key foundation for supporting today's rapidly growing IT environments. Linux is being used to deploy business applications and databases, trading on its reputation as a low-cost operating environment. For many IT organizations, Linux is a mainstay for deploying Web servers and has evolved from handling basic file, print, and utility workloads to running mission-critical applications and databases, physically, virtually, and in the cloud. As Linux grows in importance in terms of value to the business, managing Linux environments to high standards of service quality — availability, security, and performance — becomes an essential requirement for business success.

Learn More

Sponsored by Red Hat

White Paper
Private PaaS for the Agile Enterprise

If you already use virtualized infrastructure, you are well on your way to leveraging the power of the cloud. Virtualization offers the promise of limitless resources, but how do you manage that scalability when your DevOps team doesn’t scale? In today’s hypercompetitive markets, fast results can make a difference between leading the pack vs. obsolescence. Organizations need more benefits from cloud computing than just raw resources. They need agility, flexibility, convenience, ROI, and control.

Stackato private Platform-as-a-Service technology from ActiveState extends your private cloud infrastructure by creating a private PaaS to provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your enterprise.

Learn More

Sponsored by ActiveState