Using ActiveResource without Rails

2019-07-15 02:13发布

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 .

3条回答
beautiful°
2楼-- · 2019-07-15 02:23

Yes it's possible to use ActiveResource separately.

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

查看更多
别忘想泡老子
3楼-- · 2019-07-15 02:26

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.

查看更多
冷血范
4楼-- · 2019-07-15 02:35

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

查看更多
登录 后发表回答