浏览 3037 次
|
锁定老贴子 主题:Rails 与 Flex 完美结合
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
|---|---|
| 作者 | 正文 |
|
最后更新时间:2007-05-09 关键字: Rails 与 Flex 完美结合
rubyonrails-ria-sdk-by-adobe
The Ruby on Rails RIA SDK by Adobe The Ruby on Rails RIA SDK by Adobe provides developers with samples and code to help develop solutions with Ruby and Adobe technologies. The SDK includes open source code created by third parties as well as samples and demos that have been created by project members. You can download an initial .zip file containing all the files using the Download link on the right hand side, or you can check out the code via SVN by clicking on the 'Source' tab on the top of the page. 相关下载:http://www.flexonrails.net/RubyOnRailsRIASDKbyAdobe.zip 声明:JavaEye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
|
|
| 返回顶楼 | |
|
最后更新时间:2007-04-29
是我所期待的!
|
|
| 返回顶楼 | |
|
最后更新时间:2007-04-30
呵呵
那天朋友才叫我去玩Flex呢! 來看看這個吧:) 轉寄給朋友.. 感激:) |
|
| 返回顶楼 | |
|
最后更新时间:2007-04-30
第一个Demo我终于搞定了,注意哦,中文也可以的
|
|
| 返回顶楼 | |
|
最后更新时间:2007-04-30
把他上传上啊!。参考一下。谢谢!
|
|
| 返回顶楼 | |
|
最后更新时间:2007-05-07
Rails 与 Flex 相关资料:
http://www.liverail.net/articles/2006/04/16/rubyonrails-1-1-and-flex-2-0-pt-1 http://www.liverail.net/articles/2006/05/06/rubyonrails-1-1-and-flex-2-0-pt-2 |
|
| 返回顶楼 | |
|
最后更新时间:2007-05-07
RubyOnRailsRIASDKbyAdobe.zip
大家认真去学学这个例子 flex_ror_sdk_issuetracker 看看flex客户端如何提交Rails他们都是采用参数,参数可以是单个值也可以是对象 1、提交是单个值:click="deleteBug.send({id:bugs_dg.selectedItem.id})" 在Rails那里params[:id] 就可以接收 2、提交对象,在Flex中 <mx:request xmlns=""> <bug> <reportedby>{reportedby.text}</reportedby> <assignedto>{assignedto.text}</assignedto> <description>{description.text}</description> <status>{status.text}</status> <priority>{priority.text}</priority> </bug> </mx:request> 这是一个叫着 bug的对象 在Rails这样接收:params[:bug] 就可以得到这个对象 在这个实例中采用 HttpServer 方式提交 在客户端Flex 如何提交大家要注意几个地方:httpServer的ID的名字,Id的名字.Send()就是提交,如果要返回则:要在Rails :render :xml => @bug.to_xml 这就返回bug对象,如果出现错误最后先http://localhost:3000/bugs/list 测试一下如果返回的是一个XML文件就对了了 |
|
| 返回顶楼 | |





