Paul Krill
Editor at Large

Faster Ruby on Rails rolls into the station

news
Dec 2, 20142 mins

Ruby on Rails 4.2 will feature debugging and performance upgrades, as work on version 5 of the Web development framework begins

ruby rails programming
Credit: Thinkstock

The Ruby on Rails Web development framework has plenty of rivals these days on the JavaScript front, but the framework keeps chugging along, with multiple upgrades on the horizon.

Version 4.2, due this month, will feature debugging, HTML, and jobs framework improvements. The upgrade, which moved to a release candidate stage late last week, also sets the stage for Rails 5.0, the next major release of the 10-year-old framework. “The release of the first RC for the 4.2.0 series also marks the beginning of Rails 5 development,” the Rails blog said, though Rails creator David Heinemeier Hansson stated in an email that version 5.0 will not likely appear before next fall.

“New applications generated with Rails 4.2 now come with the Web Console gem by default,” Rails 4.2 release notes state. “Web Console adds an interactive Ruby console on every error page and provides a console view and controller helpers.”

The Active Job framework in version 4.2, meanwhile, serves as a common interface on top of queuing systems like Resque, Sidekiq, and Delayed Job. “Jobs written with the Active Job API run on any of the supported queues thanks to their respective adapters. Active Job comes pre-configured with an inline runner that executes jobs right away.”

Version 4.2 will also provide a performance boost via Adequate Record, a set of upgrades to Active Record that can double the speed of some queries. Adequate Record works by caching common SQL queries as prepared statements and reusing them on similar calls. Active Record, serving as the “model” in the Rails MVC paradigm, enables development of business objects, with data requiring persistent storage in a database.

Finally, “the HTML sanitizer has been replaced with a new, more robust, implementation built upon Loofah and Nokogiri,” according to release notes. “The new sanitizer is more secure and its sanitization is more powerful and flexible.”

While Rails has not been generating the kind of buzz as JavaScript technologies like Node.js or Angular.js, it has an established base of developers and applications. Hansson is OK with alternatives that keep popping up, saying, “Great to see lots of options available to people. Some come, some go.”

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author