
Note: This article was created based on Flex 2. Minor changes in the description and code may be necessary before it can be applied to Flex 3.
In this article you will learn how to integrate Flex 2 with Ruby on Rails and a MySQL database by building a simple issue tracker application. By following the steps in this tutorial, you will also learn how to add functionality to the application, such as adding a new bug to the database, reading existing bugs, updating a bug, and deleting a bug.
Basic understanding of ActionScript, MXML, and Flex Builder.
When using Flex you have several options to choose from for back-end server software. So why might you want to choose Rails? Ruby on Rails, like Flex, is a well thought out, elegantly simple framework. As you will see, Rails uses code generation and metaprogramming to make it incredibly easy to integrate with a database using almost no SQL code. Furthermore, when you use Rails, you also get to use Ruby, a programming language that is both extremely powerful and easy to use. Using Flex and Ruby on Rails, you will be able to get more done with less code.
Flex + Rails + Ruby = RIA Nirvana.
Derek Wischusen is a developer who has been creating applications using the Flash platform since 2000. He runs a blog on using Flex with Ruby on Rails, and he helps run the Flex side of the Philly Flash Platform Users Group.