SHARE
Follow this article on Twitter Facebook LinkedIn Bookmark and Share
Home >> Integrating IT

Ruby on Rails 3.0 now available

Ruby on Rails 3.0 now available

By:  Paul Krill  On: 30 Aug 2010 For: InfoWorld (U.S.) 

The open source Web framework upgrade, following the second release candidate one week before, 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.


Sign up for our Newsletters












Print |  Views: 692   |   Rating:offoffoffoffoff  (0 votes)
Rate this article on a scale of
1 to 5 stars,5 being the best.




paul krill Paul Krill is a contributor to the International Data Group (IDG) News Service, which publishes global technology stories from bureaus around the world to more than 300 publications in more than 60 countries.

Comments (0)

No Comments!
Name: (required) eMail: (optional)

Your email address will not appear online and will be used only if the editor wishes to contact you personally for additional comments.