Download files from flex to rails

could anyone tell me how to download files in flex using rails
abhishekchess1@gmail.com