将数据从一个 Rails 应用程序提交到另一个 Rails 应用程序

发布于 2024-08-14 03:04:26 字数 174 浏览 1 评论 0原文

我有两个 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 技术交流群。

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

发布评论

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

评论(1

倾听心声的旋律 2024-08-21 03:04:27

我使用 ActionWebService 来实现此目的。在一个应用程序中构建服务器,在另一个应用程序中构建客户端。

I use ActionWebService for that purpose. Build the server in one app and the client in the other.

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