Has anyone developed an application with Flex UI and Rails?
2 answers
Peter Armstrong has written an excellent book called Flexible Rails and also created a Flex / Rails framework called Ruboss . I recommend that you check both of these resources.
+3
source to share
I have developed several applications using Flex and Rails. The easiest way is to just use as3corelib ( http://code.google.com/p/as3corelib/ ) and use standard JSON objects. You can play with AMF serializers, but none of them are production-ready (they are written in ruby, not C).
The most important thing you need is to make sure that if you are creating resources from Flex, you need to send an authentication key from flex. I do this by writing a helper to output it to the view:
<script language="Javascript">
function getAuthKey() { return "<%= form_authenticity_token %>"; }
</script>
Then use ExternalInterface to call it inside Flex.
ExternalInterface.call('getAuthKey')
0
source to share