Flexible Rails you own this product

Flex 3 on Rails 2
Peter Armstrong
  • December 2007
  • ISBN 9781933988504
  • 592 pages
  • printed in black & white

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases

lite $19.99 per month

  • access to all Manning books, including MEAPs!


5, 10 or 20 seats+ for your team - learn more

Look inside

Flexible Rails is a book about how to use Ruby on Rails and Adobe Flex to build next-generation rich Internet applications (RIAs). The book takes you to the leading edge of RIA development, presenting examples in Flex 3 and Rails 2.

This book is not an exhaustive Ruby on Rails tutorial, nor a Flex reference manual. (Adobe ships over 3000 pages of PDF reference documentation with Flex.) Instead, it's an extensive tutorial, developed iteratively, how to build an RIA using Flex and Rails together. You learn both the specific techniques you need to use Flex and Rails together as well as the development practices that make the combination especially powerful.

The example application built in the book is MIT-licensed, so readers can use it as the basis for their own applications. In fact, one reader has already built an agile project management tool based on the book example!

about the technology

Rails is a fantastic tool for web application development, but its Ajax-driven interfaces stop short of the richness you gain with a tool like Adobe Flex. Simply put, Flex is the most productive way to build the UI of rich Internet applications, and Rails is the most productive way to rapidly build a database-backed CRUD application. Together, they're an amazing combination.

about the book

With this book, you learn Flex by osmosis. You can read the book and follow along even if you have never used Flex before. Consider it "Flex Immersion." You absorb the key concepts of Flex as you go through the process of building the application.

You will also learn how Flex and Rails integrate with HTTPService and XML, and see how RESTful Rails controller design gracefully supports using the same controller actions for Flex and HTML clients. The author will show you how Cairngorm can be used to architect larger Flex applications, including tips to use Cairngorm in a less verbose way with HTTPService to talk to Rails.

what's inside

  • Flex 3 and Ruby on Rails 2 integrated with HTTPService and XML
  • RESTful Rails controllers that support Flex and HTML clients
  • Coverage of how to use Cairngorm to architect larger Flex applications
  • A full application--not just a toy--developed and refactored iteratively

about the reader

Flexible Rails is for both Rails developers who are interested in Flex, and Flex developers who are interested in Rails. For a Rails developer, Flex allows for more dynamic and engaging user interfaces than are possible with Ajax. For a Flex developer, Rails provides a way to rapidly build the ORM and services layer of the application.

about the author

Peter Armstrong has been developing rich client applications for over 7 years. He worked with Flex full-time from July 2004 (since Flex 1.0) to October 2007 for a Silicon Valley startup, and was part of the team that won the 2006 Adobe MAX Award for RIA/Web Development. Before that, he was a Java Swing developer for over 4 years for another Silicon Valley startup. On the Rails side, Peter has been tracking Ruby on Rails since mid-2005 (since before Rails 1.0) and is the organizer of The Vancouver Ruby/Rails Meetup group. Peter is also a frequent speaker on using Flex and Rails together, including presentations at The Vancouver Flash/Flex Meetup, a RailsConf 2007 BOF, The Vancouver RIA Developer Camp and Rails to Italy in Pisa. Peter lives in the Vancouver, BC area and works as a Flex/AIR/Flash developer, writer (www.flexiblerails.com) and independent consultant (www.ruboss.com).

... a first class learning experience that is tough to quantify but easy to qualify: Don't miss it.

Louis F. Springer, Sun Microsystems

"Flexible Rails" changes the face of web application development.

Robert Dempsey, Atlantic Dominion Solutions

Well Done! ... a thorough job of blending two of the best technologies!

Christopher Bailey, Bring Light

Flex 3 on Rails 2 is much more than the sum of it's parts—and this book is the key.

Arne Pfeilsticker, Pfeilsticker Software + Services

A really nice book that covers all about Flex and Rails working together.

Paulo Fernando Larini, Benner Health Systems

choose your plan


only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • Flexible Rails ebook for free