有人开发过带有 Flex UI 和 Rails 后端的应用程序吗?

发布于 2024-07-10 19:28:36 字数 107 浏览 6 评论 0原文

我正在研究在 Flex 上使用 Rails 后端为客户做一些工作的可能性。

这不是火箭科学,但我想知道是否有人对这两项很棒的技术有过一些经验?

提前致谢....

i am looking into the possibilities of doing some work for a client on Flex with a Rails backend.

It ain't rocket science however i was wondering if anyone out there had some experiences with these two AWESOME technologies?

Thanks in advance....

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

雨落星ぅ辰 2024-07-17 19:28:36

Peter Armstrong 写了一本名为 Flexible Rails 的优秀书籍,并且还创建了一个名为 Ruboss。 我建议您查看这两个资源。

Peter Armstrong has written an excellent book called Flexible Rails, and has also created a Flex/Rails framework called Ruboss. I recommend you check out both of these resources.

夏花。依旧 2024-07-17 19:28:36

我使用 Flex 和 Rails 开发了一些应用程序。 最简单的方法就是使用 as3corelib (http://code.google.com/p/as3corelib /)并使用标准 JSON 对象。 您可以使用 AMF 序列化器,但它们都没有准备好用于生产(它们是用 ruby​​ 编写的,而不是 C 编写的)。

您需要确保的最重要的事情是,如果您从 Flex 创建资源,则需要从 Flex 发送真实性密钥。 我通过编写一个助手将其输出到视图来实现此目的:

<script language="Javascript">
    function getAuthKey() { return "<%= form_authenticity_token %>"; }
</script>

然后使用ExternalInterface 在Flex 内部调用它。

ExternalInterface.call('getAuthKey')

I have developed a few application using Flex and Rails. The easiest way is just to use the as3corelib (http://code.google.com/p/as3corelib/) and use standard JSON objects. You can play around with the AMF serializers, but none of them are production ready (they are written in ruby and not C).

The biggest thing you need to make sure of is if you are creating resources from Flex you need to send the authenticity key from flex. I do this by writing a helper to output it to a view:

<script language="Javascript">
    function getAuthKey() { return "<%= form_authenticity_token %>"; }
</script>

Then use ExternalInterface to call it inside Flex.

ExternalInterface.call('getAuthKey')
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文