|
Start Flex Builder 2.0 and select File
-> New -> Flex Project. A dialog window shown below will
appear. Make the
selections as shown below and click "Next >".

The next step is very important as it establishes the
configuration paths. Uncheck the 'Use default
location..' checkbox. The 'Root folder' field must
contain the path to the config folder of your Rails
application. The 'Root URL' field must point to the
WebORB controller deployed into the Rails application. Click
"Next >" to continue.

The next step is to assign a name to the Flex project.
Enter "SampleFlexToRubyProject" for the
project the name as shown below and click 'Next' to
continue.

The final step in Flex project creation is to set the
output folder path and output folder url. Both of these
values must point to the /public folder of the Rails
application (or a subfolder, but the location must be
the same for both).
The 'Output folder' field is the second from the bottom
of the wizard window. Click 'Browse...' and select the
/public/examples folder in your Rails application as
shown below. The 'Output folder URL' field is a
web-based URL corresponding to the folder selected
above. Enter 'http://localhost:3000/examples' as it maps
to the /public/examples folder.
Click 'Finish' to finalize project construction.

Flex Builder creates an empty Flex application. The
steps below will guide through building a Flex
application and connecting it with a Ruby object.
|