Rails 3 to add security enhancement

Preview release of Web framework upgrade, featuring protection against cross-site scripting attacks, won't arrive this week

Although developers of the Ruby on Rails Web framework will miss this week's target date for offering a preview release of Rails 3, the framework's founder will be touting planned capabilities, such as a major security enhancement, during a conference on Tuesday.

Rails 3, which is to feature a merger of Rails with the Merb framework, will be fitted with protection against cross-site scripting attacks, said Rails creator David Heinemeier Hansson, in an interview on Monday afternoon. He will be presenting at the RailsConf 2009 event in Las Vegas. Cross-site scripting enables intruders to gain unauthorized access to an application by injecting pieces of JavaScript, but version 3 will protect against this.

Default settings in Rails 3 will only permit allowable JavaScript to execute, Hansson said. "You do not want a user to be able to execute JavaScript on your page," without proper authorization to do so, he explained.

"We'll have a function that allows you to insert this code if [you] actually do mean that this code should be executed," Hansson explained.

But a preview release of Rails 3, which several months ago had been eyed for availability at the conference, will not arrive. Hansson stressed that target date was more along the lines of wishful thinking.

"Our release dates aren't as much planning as, 'That would be nice.' What matters more is [that] what we're releasing is worthwhile and it's done," said Hansson.

Still, preview code releases for Rails 3 have been ongoing, he said. "It's just not being bundled up in an official release," said Hansson. Rails 3 code has been developed in a publicly available repository, he said. A general release for Rails 3 is hoped for later this year.

Rails 3 will add Merb capabilities in such areas as the Rails router. The router is used to process application requests. The new router will offer a simplified domain-specific language for defining a route.

REST capabilities will be added to the router also, to make it more useful for declaring REST applications.

REST Web services was perhaps the key feature in Rails 2. "That's worked out fantastic," Hansson said.

By merging Rails and Merb, the Rails community adds an impressive roster of Merb developers, according to Hansson. Needless duplication of efforts is avoided as well. "Merb and Rails were doing a lot of the same things," he said. The Rails-Merb merger was revealed late last year.

Elsewhere, Rails 3 cleans up code. "We have a fair amount of code that's just been around for a long time and could stand a good cleanup, and that's what we're doing right now," said Hansson.

Also at RailsConf, Agilebuddy announced release of its Connector for Git and Github version control systems. Rails developers and developers using Git can manage a software development lifecycle from one interface, the company said. Agilebuddy features Scrum project management.

Join the PC World newsletter!

Error: Please check your email address.
Rocket to Success - Your 10 Tips for Smarter ERP System Selection

Tags ruby on railsrails 3javascriptrailsconf

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 Articles

Resources

PCW Evaluation Team

Matthew Stivala

HP OfficeJet 250 Mobile Printer

The HP OfficeJet 250 Mobile Printer is a great device that fits perfectly into my fast paced and mobile lifestyle. My first impression of the printer itself was how incredibly compact and sleek the device was.

Armand Abogado

HP OfficeJet 250 Mobile Printer

Wireless printing from my iPhone was also a handy feature, the whole experience was quick and seamless with no setup requirements - accessed through the default iOS printing menu options.

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.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?