Flexible Rails approach is to scaffold REST controllers and generate Flex (swf) views from models including validations. Use generators to create the .mxml and .as code. Use Rake to compile .swf and publish assets.
These details are provided for information only. No information here is legal advice and should not be used as such.