Ruby on Rails 3 以及如何制作 Web 服务 [英] Ruby on Rails 3 and how to make web service
问题描述
我试图让它工作,但是当我使用标准(旧)actionwebservice 时出现未初始化的常量 ActionWebService"错误,但是如果我安装 datanoise 的 actionwebservice gem,我无法正确设置项目以使用它们(在 Gemfile 中宝石捆绑器).
I tried to make this to work, but I got "uninitialized constant ActionWebService" error when I use standard (old) actionwebservice, but if I install datanoise's actionwebservice gem I can't settup project properly to use them (in Gemfile with gem Bundler).
有替代方案吗?有人让这个想法起作用吗?
There is a alternative? Someone make this think to work?
推荐答案
据我所知,datanoise 的 gem 与 rails 3 不兼容.在 github 页面上,它说它的版本是 2.3.2.但是这里有一个 rails 3 fork
As I understand datanoise's gem is not rails 3 compatible. On the github Page it says that it's version 2.3.2. However here is a rails 3 fork
为什么不能使用 ActiveResource?您是否有某种不使用 REST 的特定要求?
Why can't you use ActiveResource? Do you have some sort of specific requirement not to use REST?
这篇关于Ruby on Rails 3 以及如何制作 Web 服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!