Flex & Ruby on Rails & Tutorials 26 Jan 2008 08:54 pm

Flex + Ruby on Rails Installation

Flex and ROR make a great team. Both are new kids on the block with a lot of hype behind them, but one thing appeals to me the most is how much code I could save by using the Flex/ROR stack. Don’t just take my word for it, download the frameworks and try it for yourself. Here are some instructions to get you started,

  1. Install Flex. The Flex SDK is free of charge. Just to make your life a little easier, you should also consider getting the Flex Builder.
  2. Install Ruby on Rails. Make sure you also configure SQLite3 for Ruby.
  3. To build a test application,
    1. Start a new ROR project: in command line, type “rails testapp” to create the application shell
    2. Change directory into the new application shell you just created. Type “ruby script/plugin install http://themidnightcoders.net:8089/svn/weborb” to install the Flex remoting interface library for ROR
    3. Start the default project server by typing the following in the command line, “ruby script/server”
    4. Go to http://localhost:3000/examples/main.html for the test application

NOTE: The WebORB remoting interface does not support ROR forgery protection at the time of this writing. If the Flex test page failed, try opening <project>/config/environments/development.rb and add this line, “config.action_controller.allow_forgery_protection = false”

Need to bring your Flex project up to speed? Zee Yang is a freelance Flex developer with deep understanding of architecture and user experience. You can reach him at zee.yang@gmail.com.

One Response to “Flex + Ruby on Rails Installation”

  1. on 10 May 2008 at 3:41 am 1.Nordische Mythologie said …

    What is Ruby on Rails? Would my interests.

Trackback This Post | Subscribe to the comments through RSS Feed

Leave a Reply