将数据从一个 Rails 应用程序提交到另一个 Rails 应用程序
我有两个 Rails 应用程序。我想将数据从一个应用程序提交到另一个应用程序,但我希望它通过控制器逻辑,因为它不仅仅是一个数据库哑巴。我尝试使用带有 POST 的目录 HTTP 调用,但它不起作用,因为它要求真实性令牌。
现在我拥有这两个应用程序,您认为最简单的方法是什么?
谢谢,
谭
I have two rails applications. I would like to submit data from one application to another but I want it go through the controller logic as it's not just a DB dumb. I tried using directory HTTP call with POST but it didn't work as it asked for Authenticity Token.
Now that I own both apps what is the easiest way in your opinion to do this?
Thanks,
Tam
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我使用 ActionWebService 来实现此目的。在一个应用程序中构建服务器,在另一个应用程序中构建客户端。
I use ActionWebService for that purpose. Build the server in one app and the client in the other.