Question

There seem to be a few alternatives for Rails web services. Namely ActiveResource, HTTParty and Nokogiri

Is there a clear winner between these 3 (or others) for getting the job done? The requirements are basic i.e. do a POST without requiring any authentication.

I should mention that I am referring to Rails 3 applications, both at the consumer and the server ends. I know it is a rather general question and that there are plenty of posts out there but there does not seem to be a clear trend as to which one serves simple needs best (gut feeling says go for ActiveResource since it is part of the framework).

Was it helpful?

Solution

If it's a RESTful api (which modern rails app's apis should be), ActiveResource will be by far the simplest to use and will require very little configuration to get running, plus, because it makes the api behave as if it's just another model, it keeps your app's code cleaner and simpler.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top