My favorites | Sign in
Project Logo
             
Code license: MIT License
Labels: flex, rails, ruby, plugin
Feeds:
People details
Project owners:
  jae.hess

This is a collection of helpful tools when working with Adobe Flex SDK and Rails. Some patterns adapted from Peter Armstrong's book, Flexible Rails (http://www.flexiblerails.com).

Installation

script/plugin install http://flexible-rails.googlecode.com/svn/trunk/plugins/flexible_rails

Rake Tasks

Rake Tasks assumes Flex 3 SDK is your PATH

rake flex              # Run all Flex tasks
rake flex:compile      # Compiles Flex Applications and moves swf(s) into public/bin directory
rake flex:static       # Moves JS, CSS, and index.html located within app/flex into respective public/ folders

Generators

./script/generate flex ApplicationName [ComponentName]

The first parameter specifies the ApplicationName that will be created. A Skeleton MXML file will be created in app/flex directory, as will a skeleton components directory in app/flex/com/applicationname/components. If public/bin does not exist, it will be created to hold you application SWF's

The second parameter specifies the name of an Application Component that will be created in app/flex/com/applicationname/components. The skeleton component will be <mx:Canvas />

to_xml (Fix for Flex)

The to_xml() method will now by default use :dasherize => false

respond_to

respond_to blocks in your controller will now only display .html blocks in non-production modes. This allows you to view scaffold in Development, Test, without changing your codebase in production


Copyright (c) 2008 Jae Hess, released under the MIT license









Hosted by Google Code