Ruby on Rails on track for major upgrades

Templates, modularity featured in roadmap that includes merger with rival Merb framework

It is looking like a very busy year for the popular Ruby on Rails Web application development framework, with multiple enhancements anticipated in an upgrade due this month, followed by a merger later on with the Merb Web framework.

First on deck is the 2.3 release of the open source Rails framework, set to feature performance optimizations, customizable templates, memory savings, and the ability to write the most performance-dependent parts in Ruby. Rails 2.3 also features HTTP Digest Authentication, an API for authentication.

"It's getting pretty close to being done," with an expected release this month, says David Heinemeier Hansson, creator of Rails and a partner at 37signals, a Web application development company.

Rails 2.3 takes early advantage of Merb strengths

While Rails 3, expected in an early format around May, serves as the merged Merb-Rails release, Version 2.3 in some ways serves as a precursor to Version 3, with performance boosts brought over from Merb, Hansson says.

For example, the respond_to block capability in Rails, enabling an application to respond to a single request with HTML, XML, or JavaScript, has been made 8 percent faster in Version 2.3 by Yehuda Katz, the new Rails core team member coming over from Merb, Hansson says.

Other Version 2.3 changes are unrelated to Merb. For example, the new templates capability enables creation of templates already fitted with specific capabilities such as plug-ins, instead of just having a bare-bones, skeleton template, Hansson adds. A plug-in could be added, for example, to ensure that an application is tested by the RSpec framework rather than the default Test::Unit framework. A pagination plug-in also could be included in a template.

The Rack function in Version 2.3 serves as a piece of shared infrastructure, enabling different Ruby frameworks to work together more easily. A developer, for example, could add in to a Rails project a piece of an application built in the more lightweight Sinatra framework, Hansson says.

The Rails Metal capability in Rails 2.3 lets developers author part of an application directly in Ruby rather than in Rails, to boost performance. "Rails Metal is basically an assembler for Rails, where you throw away all the premade functions and so on that you normally have and use [it] to be extremely fast on a tiny part of your application," Hansson says.

The blockbuster Rails 3 brings in the best of Merb

As dramatic as some of the features are in Version 2.3, Ruby 3 looks to be the bigger blockbuster upgrade. A release candidate is hoped for at the RailsConf conference in Las Vegas in May, Hansson says, though the development is early enough that he calls it "still in some ways vaporware."

But Hansson assures that Rails 3 will take full advantage of the competing Merb effort, which is now being merged into Rails. The Rails-Merb merger, announced on December 23, came about because the Rails and Merb teams basically realized they wanted the same things, Hansson says.

Join the PC World newsletter!

Error: Please check your email address.

Tags ruby on rails

Our Back to Business guide highlights the best products for you to boost your productivity at home, on the road, at the office, or in the classroom.

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Paul Krill

InfoWorld
Show Comments

Most Popular Reviews

Latest News Articles

Resources

PCW Evaluation Team

Azadeh Williams

HP OfficeJet Pro 8730

A smarter way to print for busy small business owners, combining speedy printing with scanning and copying, making it easier to produce high quality documents and images at a touch of a button.

Andrew Grant

HP OfficeJet Pro 8730

I've had a multifunction printer in the office going on 10 years now. It was a neat bit of kit back in the day -- print, copy, scan, fax -- when printing over WiFi felt a bit like magic. It’s seen better days though and an upgrade’s well overdue. This HP OfficeJet Pro 8730 looks like it ticks all the same boxes: print, copy, scan, and fax. (Really? Does anyone fax anything any more? I guess it's good to know the facility’s there, just in case.) Printing over WiFi is more-or- less standard these days.

Ed Dawson

HP OfficeJet Pro 8730

As a freelance writer who is always on the go, I like my technology to be both efficient and effective so I can do my job well. The HP OfficeJet Pro 8730 Inkjet Printer ticks all the boxes in terms of form factor, performance and user interface.

Michael Hargreaves

Windows 10 for Business / Dell XPS 13

I’d happily recommend this touchscreen laptop and Windows 10 as a great way to get serious work done at a desk or on the road.

Aysha Strobbe

Windows 10 / HP Spectre x360

Ultimately, I think the Windows 10 environment is excellent for me as it caters for so many different uses. The inclusion of the Xbox app is also great for when you need some downtime too!

Mark Escubio

Windows 10 / Lenovo Yoga 910

For me, the Xbox Play Anywhere is a great new feature as it allows you to play your current Xbox games with higher resolutions and better graphics without forking out extra cash for another copy. Although available titles are still scarce, but I’m sure it will grow in time.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?