What do I need to have in my app in order to do GET, PUT, etc requests to a public REST API that answers with JSON?
I'm a little confus开发者_运维百科ed with that.
Thanks!
ActiveResource was made for that. You can use the format= to make it parse JSON:
class User < ActiveResource::Base
self.format = :json
#...
end
精彩评论