Using ActiveResource without Rails

我只是一个虾纸丫 提交于 2019-12-12 22:13:09

问题


Hi I'm developing a Rails application that exposes some methods via ActiveResource. I want to access these resources through a simple remote ruby script. I want to know if it's possible use ActiveResource without Rails .


回答1:


Indeed you can. ActiveResource is a separate library. However, ActiveResource depends on ActiveSupport, so make sure you include both as requirements in your code.




回答2:


Yes it's possible to use ActiveResource separately.

You can find good documentation on the project page @ github.




回答3:


Yes, I've done it before. But IMO, there are other options out there now that are a little nicer. RestClient and HTTParty come to mind.



来源:https://stackoverflow.com/questions/2311204/using-activeresource-without-rails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!