Has anyone developed an application with Flex UI and Rails?

I'm looking into doing some work for a Flex client with a Rails backend.

It's not rocket science, but I was wondering if anyone has any experience with these two AWESOME technologies?

Thanks in advance....

0


source to share


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


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







All Articles