Rails integration for Flex