ActiveResource vs HTTParty
-
21-05-2021 - |
Domanda
I'm moving our primary datastore away from ActiveRecord, and instead the data will be accessible through a REST api as JSON. Should I use ActiveResource or HTTParty to access the data? It's primarily going to be read-only for view rendering.
Soluzione
I think that HTTParty has a better API, is better maintained and more flexible than ActiveResource. I would use HTTParty.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow