문제

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).

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top