Free Newsletters
InfoWorld Daily

InfoWorld
Log-in | Register

Lab test: Climb aboard Ruby on Rails

The InfoWorld Test Center sifts through nine Rails IDEs and editors to help you choose the tools to suit your development needs


The Ruby on Rails site bills its eponymous project as "Web development that doesn't hurt." I'm not really sure what that means, but it certainly sounds good.

Further down on the page, it says, "Rails is a full-stack framework for developing database-backed Web applications according to the Model-View-Control pattern. From the Ajax in the view, to the request and response in the controller, to the domain model wrapping the database, Rails gives you a pure-Ruby development environment. To go live, all you need to add is a database and a Web server." That's almost true.

On the Rails download page, after some basic installation instructions for installing Ruby, RubyGems (the standard Ruby package manager), and Rails, as well as some terse hints about how to get started, there's some advice about Rails editors: "The entire Rails core team is using TextMate on Mac OS X. It's a fantastic editor that ships with Ruby on Rails highlighting and macros. If you're not running Apple, check out RadRails. It's a cross-platform Rails editor built on top of the Eclipse IDE."

The Rails team never tries to disguise its enthusiasm for Mac OS X, but it has given short shrift to developers who prefer other platforms -- so let's amplify the Rails Editors and IDEs story a bit.

Something for everyone
I have personally used three OS platforms for Rails: Linux, OS X, and Windows; a fourth supported OS is Solaris. There are four Ruby VMs that can run Rails: plain old Ruby, JRuby, Rubinius, and IronRuby. I have done all my Rails development on Ruby rather than any of the alternate VMs. Your intended development OS will likely constrain your choice of editor. If you are hell-bent on using JRuby, Rubinius, or IronRuby, that could also limit your choice of editor.

Test-driven development is very common in the Rails world. When you're developing a Rails application, you typically start by doing some code generation, using a number of handy shell scripts. Once you have a skeleton application, you typically build it up incrementally by adding and coding models and actions, adding and coding tests, running and debugging the tests, refactoring, adding Embedded Ruby pages to generate HTML views, testing the HTML display in a browser, and viewing the server log. If you need AJAX, many actions and effects can be generated entirely from Ruby, but more complicated or uncommon effects usually require some coding and debugging in JavaScript.

In the course of all this, you'll find yourself constantly moving among the test, model, controller, helper, and view code, and popping among editor, browser, and shell windows. An IDE and/or some editing shortcuts can cut down on the amount of time you spend popping around.

When it comes to code editors, one size does not fit all. It never has. Even in the early days of the ARPAnet, not everyone who programmed on the PDP-10 used TECO; later on, Unix developers argued fruitlessly about the relative merits of emacs and vi. Emacs and vi (or xemacs and vim, if you prefer) are still options, by the way: Both have plug-ins for Ruby and can be used effectively for Rails development, along with a browser and a command shell. Other editors that can be used for Rails in combination with a browser and a command shell include SciTE, SlickEdit, and jEdit.

Bundles of joy
So why do the Rails core developers swear by TextMate on the Mac? Simple: Early on, they built "bundle" (essentially macro) extensions for TextMate as tooling for Ruby and Rails programming.

Bundles give you incredible power, at the expense of needing to memorize keyboard shortcuts for efficiency. The bundle approach to automation makes eminent sense for a developer who lives in one code editor all day. On Windows, the bundle approach can be found in the TextMate-inspired E Text Editor and InText; both include a Ruby and a Rails bundle.

Why does the Rails team suggest RadRails for everyone else? Basically, it's an integrated GUI development environment for Rails, and it runs wherever Eclipse and Java run. Also, Aptana RadRails Community Edition is free.

Several other products follow the RadRails integration approach to Rails development: 3rdRail, Komodo, NetBeans, IntelliJ IDEA, and Ruby in Steel. They all play variations on the theme, but if you know one, you'll that find that the others look familiar.

You don't have to restrict yourself to one tool, either. You can mix and match tools for a complete set of functionality. For example, on the Mac, you might want to mix TextMate, which gives you power editing via its Rails bundle, with either NetBeans or RadRails, both of which are free IDEs that have debuggers.

In this review suite, I've covered the Rails IDEs and the editors with Rails bundles. See the individual product write-ups, pros/cons and features tables, and Bottom Line boxes (at the bottom of each page) for more on each product.

[Jump to the review of the Ruby on Rails IDE of your choice from the list below:
SapphireSteel Ruby in Steel Developer Edition 1.2 and Text Edition 1.1.5
Aptana RadRails 1.0
ActiveState Komodo IDE 4.3 and Edit 4.3
CodeGear 3rdRail 1.1
NetBeans IDE 6.1
MacroMates TextMate 1.5.7
JetBrains IntelliJ IDEA 7.0.3 with Ruby plug-in 1.0
E Text Editor 1.0.20 Beta
Intype 0.3.1 Alpha]

Martin Heller is a contributing editor of the InfoWorld Test Center and writes the Strategic Developer blog.
Continued
1 | 2 | 3 | 4 | 5 | 6 | 7 | NEXT PAGE » 

 The Bottom Line

SapphireSteel Ruby in Steel Developer Edition 1.2 and Text Edition 1.1.5
SapphireSteel Software, sapphiresteel.com

Very Good  8.3
criteria score weight
Features 9 40%
Ease-of-use 8 20%
Integration 7 20%
Performance 9 10%
Value 8 10%

Cost:
$199 for Developer Edition, $49 for Text Edition (with reduced features and performance)

Platforms:
Windows XP/Vista

Bottom Line:
If you use Visual Studio for coding in other languages and/or developing other kinds of Web sites and want to develop Ruby programs and Rails sites in the same IDE, then Ruby in Steel is exactly what you need. The best features -- the IntelliSense support for Ruby and Rails, the Visual Rails Workbench, and the fast Ruby and JRuby debuggers -- are reserved for the more expensive Developer Edition.

About our Reviews and Scoring Methodology

 The Bottom Line

Aptana RadRails 1.0
Aptana, aptana.com

Very Good  8.6
criteria score weight
Features 8 40%
Ease-of-use 9 20%
Integration 9 20%
Performance 8 10%
Value 10 10%

Cost:
RadRails plug-in is free; $199 ($99 intro) for Aptana Studio Professional Edition. Community Edition is free, but lacks Profiler and JSON editor

Platforms:
Windows 32- or 64-bit platforms, Mac OS X 10.4 or higher, or Linux 32-bit with GTK.

Bottom Line:
Aptana RadRails is a cross-platform Rails editor built on top of the Eclipse IDE. The free Community Edition is good enough for most Rails developers' needs. The fact that RadRails is part of Aptana means that RadRails users have access to excellent JavaScript editing and debugging, which helps when working with AJAX.

About our Reviews and Scoring Methodology

 The Bottom Line

ActiveState Komodo IDE 4.3 and Edit 4.3
ActiveState Software, activestate.com

Good  7.9
criteria score weight
Features 7 40%
Ease-of-use 9 20%
Integration 8 20%
Performance 9 10%
Value 8 10%

Cost:
$295 for IDE, Edit is free

Platforms:
Windows 2000/XP/Vista; Mac OS X 10.3 and higher; Debian/Ubuntu 5.04 and higher; Red Hat/Fedora 4 and higher; Suse 9.0 and higher

Bottom Line:
If you are already using the multiplatform, multilingual Komodo IDE for development in other languages, it makes sense to use it for Ruby on Rails as well. It probably wouldn't be my top pick for full-time Rails developers, however. Komodo Edit is a reasonably good free Ruby on Rails editor, but lacks the debuggers, interactive shells, HTTP inspector, DOM viewer, and SCC integration of Komodo IDE.

About our Reviews and Scoring Methodology

 The Bottom Line

CodeGear 3rdRail 1.1
CodeGear, codegear.com

Very Good  8.4
criteria score weight
Features 8 40%
Ease-of-use 9 20%
Integration 9 20%
Performance 9 10%
Value 7 10%

Cost:
$399

Platforms:
Windows XP/Vista; Mac OS X 10.4/10.5; Ubuntu Linux 7.1

Bottom Line:
3rdRail, which won a Jolt Productivity award last spring, offers higher developer productivity than most other Rails IDEs, at a higher price. Developers who work on Rails applications full-time should be able to justify the initial cost in terms of long-term productivity gains.

About our Reviews and Scoring Methodology

 The Bottom Line

NetBeans IDE 6.1
Sun, netbeans.org

Excellent  9.0
criteria score weight
Features 9 40%
Ease-of-use 9 20%
Integration 9 20%
Performance 8 10%
Value 10 10%

Cost:
Free

Platforms:
Windows, Linux, Mac OS X, and Solaris.

Bottom Line:
If you already use NetBeans for Java and/or C/C++ development, then it should probably be your top choice as a Rails IDE as well. Delivering strong editing and navigation along with good debugging and profiling, it's a very capable and highly integrated Rails IDE. And it's free.

About our Reviews and Scoring Methodology

 The Bottom Line

MacroMates TextMate 1.5.7
MacroMates, http://macromates.com

Very Good  8.0
criteria score weight
Features 8 40%
Ease-of-use 8 20%
Integration 7 20%
Performance 9 10%
Value 9 10%

Cost:
Around $63

Platforms:
Mac OS 10.4.2 PPC/Intel

Bottom Line:
TextMate is the favorite editor of the core Rails development team, but it's only available for Mac OS X. Its full set of Ruby and Rails bundles help substantially with navigation, generation, and snippet insertion. Using them effectively, however, requires memorizing shortcuts.

About our Reviews and Scoring Methodology

 The Bottom Line

JetBrains IntelliJ IDEA 7.0.3 with Ruby plug-in 1.0
JetBrains, jetbrains.com

Very Good  8.1
criteria score weight
Features 8 40%
Ease-of-use 8 20%
Integration 8 20%
Performance 9 10%
Value 8 10%

Cost:
$249 for IntelliJ IDEA; Ruby plug-in is free

Platforms:
Windows Vista/2003/XP/2000/NT 4.0 SP6a; Mac OS X 10.4; Red Hat Linux Fedora/9.x/8.x/7.3

Bottom Line:
If you already use IntelliJ IDEA for Java development, you might like it as a Rails IDE as well: It brings to the table good Ruby and Rails edits, integration, and refactoring. You'll have to look elsewhere for a debugger, however.

About our Reviews and Scoring Methodology

 The Bottom Line

E Text Editor 1.0.20
E Text Editor, e-texteditor.com

Beta  

Cost:
$34.95

Platforms:
Windows

Bottom Line:
This capable TextMate clone for Windows is fast and efficient, incorporating the TextMate bundle and shortcut mechanism and bundle editor. Its full set of Ruby and Rails bundles help substantially with navigation, generation, and snippet insertion. Using them effectively, however, requires memorizing shortcuts.

About our Reviews and Scoring Methodology

 The Bottom Line

Intype 0.3.1
InType, http://intype.info

Alpha  

Cost:
Alpha test version is free, release version will cost between $25 and $45 (€20 and €35)

Platforms:
Windows

Bottom Line:
A TextMate-inspired editor for Windows, InType is fast and efficient, and it implements several TextMate bundles. However, it's not fully featured and doesn't seem to be under active development at this time.

About our Reviews and Scoring Methodology


Talkback:

commentPost a Comment

 

MOST COMMENTS

 
 





COMPREHENSIVE DATA PROTECTION AND DISASTER RECOVERY
Traditional backup and recovery is becoming irrelevant. You need more. Watch this InfoWorld and Dell Equallogic webcast to learn the current trends in Comprehensive Data Protection and Disaster Recovery for VMware Virtual Infrastructure. Sponsored by Dell Equallogic:

»  Click here to view this Webcast
  Virtualization Solutions Guide
This comprehensive IT Strategy Guide covers Virtualization and puts you at the forefront of the discussion. You'll learn all you need to know from the cost of virtualization, how to implement it for your business, how to back it up safely and which products are best. Sponsored by Riverbed

»  Click here to download now

- Special Advertising Partners -
WHITE PAPERS
 

» Technology White Papers Library

Technology White Papers by Topic

Technology White Papers E-mail Alert

Find out when the latest white paper is available:
 
 
INFOWORLD MARKETPLACE
 
» BUY A LINK NOW
 
 

Video

 
 
 

Podcasts

 
IFW Daily 12/04/2008

Sun enters RIA realm with JavaFX, Adobe says it will cut 600 jobs, AMD...

 
 
 

Columnists

 
 
 

Resource Center


Ads by techwords beta  [See your link here]
 




Sponsored Technology Links

 
 
 HOME  NEWS  BLOGS  PODCASTS  VIDEOS  TECHNOLOGIES  TEST CENTER  EVENTS   About | Advertise | Awards | RSS | Contact Us 

Copyright © 2008, Reprints, Permissions, Licensing, IDG Network, Privacy Policy, Terms of Service.
All Rights reserved. InfoWorld is a leading publisher of technology information and product reviews on topics including viruses,
phishing, worms, firewalls, security, servers, storage, networking, wireless, databases, and web services.

CIO :: ComputerWorld :: CSO :: Demo :: GamePro :: Games.net :: IDG Connect :: IDG World Expo
Industry Standard :: IT World :: JavaWorld :: LinuxWorld :: MacUser :: Macworld :: Network World :: PC World :: Playlist
TecChannel :: TecCommunity