Flex can't do REST
If you’re thinking of building a cool snazzy Rich Internet Application front-end in Flex for your RESTful Rails application then please stop dreaming.
There’s no way to extract the headers from an HTTP response in ActionScript 3 so you can’t get the id of a newly created resource from the ‘Location’ header and you can’t tell the difference between a ‘500 Internal Server Error’, a ‘404 Not Found’ or a ‘422 Validation Error’.
There’s also no way to get the response body for anything not in the 2xx range.
Oh, and you can only do a GET or a POST, no PUT or DELETE, at least not without a proxy.
If you can prove me wrong, please do.