I have been reading the manual on how to develop a REST application with
Rails, from b-simple[1]. However, after finishing, they talk about
ActiveResource. What is the place of this ActiveResource? I mean, the
manual has taught me to do a REST app, what is the sense of
ActiveResource? Where does it fit in mi app after all?
ActiveResource is a client for REST services. You don’t need to use
it in your app, though you might want to write a test app, because
some of your customers will probably use it if they consume your API
from within a Rails app.
If your app doesn’t expose an XML API then ARes doesn’t play a role at
all.
I have been reading the manual on how to develop a REST application
with Rails, from b-simple[1]. However, after finishing, they talk
about ActiveResource. What is the place of this ActiveResource? I
mean, the manual has taught me to do a REST app, what is the sense
of ActiveResource? Where does it fit in mi app after all?
ActiveResource is the other side of a RESTful app.
If you build your app to be RESTful, ActiveResource can be used as a
client to retrieve resources from your app. It helps you write
clients for your applications, or for other peoples’ applications
that are RESTfully designed.
Ok. So I can write my app without ActiveResource and then, if a client
wants to use it, I can transformed it with any further effort, I think?
Thanks a lot.
James S. wrote:
On 29 Oct 2007, at 12:38, Damaris F. wrote:
I have been reading the manual on how to develop a REST application
with Rails, from b-simple[1]. However, after finishing, they talk
about ActiveResource. What is the place of this ActiveResource? I
mean, the manual has taught me to do a REST app, what is the sense
of ActiveResource? Where does it fit in mi app after all?
ActiveResource is the other side of a RESTful app.
If you build your app to be RESTful, ActiveResource can be used as a
client to retrieve resources from your app. It helps you write
clients for your applications, or for other peoples’ applications
that are RESTfully designed.