Flexible Rails ============= 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). 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 to_xml (Fix for Flex) =========================== The to_xml() method will now by default use :dasherize => false =========================================================== Copyright (c) 2008 Jae Hess, released under the MIT license