Ruby on Rails 3.0 now available

Open source Web framework upgrade includes Merb performance boosts as well as cross-site scripting protection

Ruby on Rails 3.0, an upgrade to the popular open source Web framework that features a merger with the Merb framework, was released Sunday, the founder of Rails, David Heinemeier Hansson, said in a blog.

Version 3.0's general availability follows a second release candidate that was offered last week. The capabilities of Merb have been leveraged in Rails 3.0 to boost performance.

"Rails 3.0 has been underway for a good two years, so it's with immense pleasure that we can declare it's finally here. We've brought the work of more than 1,600 contributors together to make everything better, faster, cleaner, and more beautiful," Hansson said in a blog post.

Available now for download, Rails 3.0 is designed to work with Ruby version 1.8.7, 1.92, and 1.5.2.

Hansson listed the following highlights of Rails 3.0:

  • A new Active Record Query Engine to make it easier to build complex queries over several iterations.
  • Cross-site scripting protection by default.
  • A new router for Action Controller, favoring REST "with less noise and complexity."
  • A new Action Mailer, built on top of the new Mail gem. 
  • The ability to manage dependencies of Rails applications with Bundler. Developers can specify the libraries, frameworks, and plug-ins needed for an application.

Rails 3.0 also addresses encoding issues. "Never struggle with corrupted data pasted by a user from Microsoft Word again," Hansson said.

Railties, which has been described as the core of Rails, has been rewritten with the goal of using a new plug-in API for Rails with frameworks such as Active Record and Action Mailer. "This means that Rails plug-ins like the ones for DataMapper and RSpec have access to all of the integration as the built-in support for Active Record and Test::Unit," Hansson said.

Also, Action Pack and Railties are easier to extend.

A new Active Model framework allows ORM (object-relational mapping) like Mongoid to use Active Record validation, callbacks, and serialization. A rewritten Acton Controller removes references to Active Record, thus defining a simple API that ORMs can complement.

Meanwhile, rewritten internals and new plug-ins bring framework agnosticism for components of Rails 3.0.

"Prefer DataMapper to Active Record? No problem. Want to use jQuery instead of Prototype? Go ahead. Eager to test with rSpec instead of test/unit?  You got it," said Hansson.

"I'm personally incredibly proud of this release. I've been working on Rails for more than 7 years and the quality of the framework we have today is just astounding. This is only possible as a community effort and Rails 3 has seen so many incredible developers step up and help make this our best release ever (wink). Many thanks to all of you," Hansson said.

A post attributed to a key developer on the Merb project cited closure of a long development effort with Rails 3.0.

"First of all, this is a huge milestone for Rails. From my perspective, this work is three or four years in the making, from the beginning of the Merb efforts, through the merge, and on until the final release of Rails 3," said developer Yehuda Katz. "From a personal perspective, this release is huge closure for me; I feel like I've been working on Rails 3 (and associated projects, like Thor and Bundler) for years," Katz said.

People commenting on the blog also seemed pleased with the news.

"Congratulations people! Rails 3 is definitively a major milestone not just for the ruby community, but for web development in general," said commenter Rodrigo Navarro.

Rails 3.0 also features a "a wealth of great Rails 3 documentation and more is coming shortly," Hansson said.

"We'll continue to develop Rails 3.0 with fixes and tweaks via the stable branch and Rails 3.1 is already cooking on master," he promised.

Join the PC World newsletter!

Error: Please check your email address.

Tags ruby on railsapplication developmentDevelopment frameworksDeveloper Worldsoftware

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

Essentials

Lexar® JumpDrive® S57 USB 3.0 flash drive

Learn more >

Microsoft L5V-00027 Sculpt Ergonomic Keyboard Desktop

Learn more >

Mobile

Lexar® JumpDrive® S45 USB 3.0 flash drive 

Learn more >

Exec

Audio-Technica ATH-ANC70 Noise Cancelling Headphones

Learn more >

Lexar® Professional 1800x microSDHC™/microSDXC™ UHS-II cards 

Learn more >

HD Pan/Tilt Wi-Fi Camera with Night Vision NC450

Learn more >

Lexar® JumpDrive® C20c USB Type-C flash drive 

Learn more >

Budget

Back To Business Guide

Click for more ›

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?