将 rails 个应用程序连接到 android 个

Connect rails app to android one

我最近完成了一个 rails 应用程序,它目前托管在 heroku 中,它设置了数据库和所有东西。在应用程序中,您可以上传用户、编辑它们等。现在,我想创建一个可以做同样事情的 android 应用程序。 我一直在阅读有关使用休息的信息,但我不确定是否是这样。任何其他选项,谢谢!

你只有两个选择:

  1. 在您的 rails 应用程序中创建您自己的 API:

手动: http://railscasts.com/episodes/350-rest-api-versioning

使用一些 gem: http://railscasts.com/episodes/348-the-rails-api-gem

  1. 创建 android 带有 Webview 对象的应用程序,以便像浏览器一样通过互联网与您的应用程序一起工作 https://developer.chrome.com/multidevice/webview/gettingstarted

非常相似的问题: