为rails应用程序构建iphone客户端的最佳方法是什么? [英] What is the best approach for building an iphone client for a rails app?

查看:82
本文介绍了为rails应用程序构建iphone客户端的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个相当标准的rails应用程序,并希望能够从iPhone应用程序访问基本的CRUD(创建,更新,删除)操作以及我添加的查询。 Rails或多或少开箱即可为这些操作提供REST API。

I have a fairly standard rails app and would like to be able to access the basic CRUD (Create, Update, Delete) operations as well as queries I have added, from an iPhone app. Rails provides the REST API for these operations more or less out of the box.

在iphone上处理REST / XML部分的最佳方法是什么,是否有任何好的Objective-C库已经做过这种事情了?操作还需要与特定用户相关联(即经过身份验证)。

What is the best approach to deal with the REST/XML part on the iphone, and are there any good objective-C libraries that do this kind of thing already? The operations will also need to be associated with a particular user (i.e. authenticated).

推荐答案

这对我来说是个常见问题,所以我一直在研究一个名为 ObjectiveResource 的Rails ActiveResource框架的端口。

This is a common problem for me, so much so that I've been working on a port of the Rails ActiveResource framework called ObjectiveResource.

到目前为止,我们已经有两个版本的项目。 1.0已经被App Store中的一些应用程序使用,并且可以处理Rails中内置的默认to_xml和to_json资源处理。 1.01是一个错误修正版本和升级版本。

We've had two releases of the project so far. 1.0 is already in use by a few applications in the App Store and can handle the default to_xml and to_json resource handling built into Rails. 1.01 is a bugfix release and a drop in upgrade.

我们目前正致力于定义1.1的功能集。我们已经有很多想法,并且在邮件列表上讨论更多信息

We are currently working on defining the feature set for 1.1. We have quite a few ideas already, and are discussing more on the mailing list.

这篇关于为rails应用程序构建iphone客户端的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆