2

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 .

Simone Carletti
  • 173,507
  • 49
  • 363
  • 364
Lucas
  • 3,059
  • 5
  • 33
  • 48

3 Answers3

2

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

Simone Carletti
  • 173,507
  • 49
  • 363
  • 364
2

Yes it's possible to use ActiveResource separately.

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

rogeriopvl
  • 51,659
  • 8
  • 55
  • 58
1

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.

Eric G
  • 1,282
  • 8
  • 18