Web Design - Publish.com
Publish.com Ziff-Davis Enterprise  
SEARCH · ONLINE MEDIA · MOBILE · WEB DESIGN · GRAPHICS TOOLS · PRINTING · PHOTO · TIPS · OPINIONS
Home arrow Web Design arrow Ruby on Rails 2.0 Arrives
Ruby on Rails 2.0 Arrives
By Darryl K. Taft

Rate This Article:
Add This Article To:
The latest version of the Web development framework brings enhanced support for REST and beefed up security.

The much-anticipated second release of the Ruby on Rails Web development framework has been released.

Ruby on Rails was released Dec. 7. Key advancements in Rails 2.0 include enhanced support for REST (Representational State Transfer) and improved security.

"My favorite part of Rails 2.0 is how harmonic the pursuit of the RESTful principles has made application development," the technology's creator, David Heinemeier Hansson, told eWEEK. "It makes it feel so much more predictable, clean and enjoyable. HTTP had it right all along, it's just taken us Web-application developers a while to understand and appreciate it."

Hansson is a developer at 37signals, a Chicago-based Web product development firm. He said it took a year to get Rails 2.0 completed.

He said he has personally worked on the Rails framework for four years and has a core group of developers who have been around working on it just about as long. Along the way there have been hundreds of contributors, he said. "This release is a triumph for large-scale open-source development," he said.

Despite the large number of new features in the latest release, Hansson said the bulk of the effort on Rails 2.0 was put into adding more support for REST. "We've got a slew of improvements to the RESTful lifestyle," he said.

Click here to read more about 12 things you need to know about Ruby on Rails.

Moreover, he said, "it'll probably come as no surprise that Rails has picked a side in the SOAP [Simple Object Access Protocol]-versus-REST debate. Unless you absolutely have to use SOAP for integration purposes, we strongly discourage you from doing so."

Enhancing security of the framework was another major concern.

"Making it even easier to create secure applications out of the box is always a pleasure, and with Rails 2.0 we're doing it from a number of fronts," Hansson said in a blog post. "Most importantly, we now ship a built-in mechanism for dealing with CSRF [cross-site request forgery] attacks. By including a special token in all forms and AJAX [Asynchronous JavaScript and XML] requests, you can guard from having requests made from outside of your application. All this is turned on by default in new Rails 2.0 applications."

He said Rails 2.0 also makes it easier for developers to deal with XSS (cross-site scripting) attacks while still allowing users to embed HTML in their pages. "We've added support for HTTP-only cookies," he said. "They are not yet supported by all browsers, but you can use them where they are."

The Action Pack in Rails 2.0 is all about getting closer with HTTP, Hansson said. "We've added a new module to work with HTTP Basic Authentication, which turns out to be a great way to do API authentication over SSL [Secure Sockets Layer]."

In addition, Rails 2.0 features a new request profiler. "Figuring out where your bottlenecks are with real usage can be tough, but we just made it a whole lot easier with the new request profiler that can follow an entire usage script and report on the aggregate findings," Hansson said.

He said the Rails team made what already was a lightweight development framework even lighter by taking some things out, such as from the Active Record component. Active Record in Rails connects business objects and database tables to create a persistable domain model where logic and data is presented in one wrapping.

"To make Active Record a little leaner and meaner, we've removed the 'acts_as_XYZ' features and put them into individual plug-ins on the Rails SVN [subversion] repository," Hansson said. "We've also pushed all the commercial database adapters into their own gems. So Rails now only ships with adapters for MySQL, SQLite and PostgreSQL. These are the databases that we have easy and willing access to test on."

That doesn't mean the commercial databases are left out, he said. "Rather, they've now been set free to have an independent release schedule from the main Rails distribution," he said.

Also new with Rails 2.0 is making it "much easier to structure your JavaScript and stylesheet files in logical units without getting clobbered by the HTTP overhead of requesting a bazillion files," Hansson said.

Check out eWEEK.com's for the latest news, reviews and analysis in programming environments and developer tools.


Discuss Ruby on Rails 2.0 Arrives
 
>>> Be the FIRST to comment on this article!
 

 
 
>>> More Web Design Articles          >>> More By Darryl K. Taft
 


Buyer's Guide
Explore hundreds of products in our Publish.com Buyer's Guide.
Web design
Content management
Graphics Software
Streaming Media
Video
Digital photography
Stock photography
Web development
View all >

ADVERTISEMENT


FREE ZIFF DAVIS ENTERPRISE ESEMINARS AT ESEMINARSLIVE.COM
  • Dec 10, 4 p.m. ET
    Eliminate the Drawbacks of Traditional Backup/Replication for Linux
    with Michael Krieger. Sponsored by InMage
  • Dec 11, 1 p.m. ET
    Data Modeling and Metadata Management with PowerDesigner
    with Joel Shore. Sponsored by Sybase
  • Dec 12, 12 p.m. ET
    Closing the IT Business Gap: Monitoring the End-User Experience
    with Michael Krieger. Sponsored by Compuware
  • Dec 12, 2 p.m. ET
    Enabling IT Consolidation
    with Michael Krieger. Sponsored by Riverbed & VMWare
  • VTS
    Join us on Dec. 19 for Discovering Value in Stored Data & Reducing Business Risk. Join this interactive day-long event to learn how your enterprise can cost-effectively manage stored data while keeping it secure, compliant and accessible. Disorganized storage can prevent your enterprise from extracting the maximum value from information assets. Learn how to organize enterprise data so vital information assets can help your business thrive. Explore policies, strategies and tactics from creation through deletion. Attend live or on-demand with complimentary registration!
    FEATURED CONTENT
    IT LINK DISCUSSION - MIGRATION
    A Windows Vista® migration introduces new and unique challenges to any IT organization. It's important to understand early on whether your systems, hardware, applications and end users are ready for the transition.
    Join the discussion today!



    .NAME Charging For Whois
    Whois has always been a free service, but the .NAME registry is trying to change that.
    Read More >>

    Sponsored by Ziff Davis Enterprise Group

    NEW FROM ZIFF DAVIS ENTERPRISE


    Delivering the latest technology news & reviews straight to your handheld device

    Now you can get the latest technology news & reviews from the trusted editors of eWEEK.com on your handheld device
    mobile.eWEEK.com

     


    RSS 2.0 Feed


    internet
    rss graphic Publish.com
    rss graphic Google Watch

    Video Interviews


    streaming video
    Designing Apps for Usability
    DevSource interviews usability pundit Dr. Jakob Nielsen on everything from the proper attitude for programmers to the importance of prototyping in design to the reasons why PDF, Flash and local search engines can hurt more than they help.
    ADVERTISEMENT