# Can we use ActiveResource yet?

**URL:** <https://www.ruby-forum.com/t/can-we-use-activeresource-yet/101548>\
**Category:** Rails\
**Created:** [August 6, 2006, 12:33am UTC](https://www.ruby-forum.com/t/can-we-use-activeresource-yet/101548 "2006-08-06T00:33:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pergesu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/22d042/32.png) [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Post date:** [August 6, 2006, 12:33am UTC](https://www.ruby-forum.com/t/can-we-use-activeresource-yet/101548/1 "2006-08-06T00:33:41Z")

</div>

I need to split some information up between two servers, and wanted to  
use REST for it. I can write the REST server really easily…but I  
don’t know how I can actually use it. I downloaded Rails trunk to  
mess with ActiveResource, but it seems that it doesn’t have create  
functionality enabled yet.

Is it possible to use AR fully? If not, what’s the best way to  
consume REST services?

Pat

---

<div class="post-metadata">

**Author:** ![pergesu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/22d042/32.png) [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Post date:** [August 6, 2006, 4:55am UTC](https://www.ruby-forum.com/t/can-we-use-activeresource-yet/101548/2 "2006-08-06T04:55:18Z")

</div>

On 8/5/06, Pat M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I need to split some information up between two servers, and wanted to  
> use REST for it. I can write the REST server really easily…but I  
> don’t know how I can actually use it. I downloaded Rails trunk to  
> mess with ActiveResource, but it seems that it doesn’t have create  
> functionality enabled yet.
> 
> Is it possible to use AR fully? If not, what’s the best way to  
> consume REST services?

I posted this question earlier, but didn’t get any responses.

Could someone explain (or post a link to someplace that does) what  
this whole REST thing is, how ActiveResource helps with it, and why I  
should care?

Thanks,  
Joe

---

<div class="post-metadata">

**Author:** ![pergesu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/22d042/32.png) [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Post date:** [August 6, 2006, 4:31pm UTC](https://www.ruby-forum.com/t/can-we-use-activeresource-yet/101548/3 "2006-08-06T16:31:50Z")

</div>

On Aug 6, 2006, at 12:07 AM, Josh S. wrote:

> Joe, you should watch the video of DHH’s “World of Resources” keynote  
> from RailsConf. He spends a good hour or more doing just that. Google  
> for it or backread the Rails blog for a link.

also, for those who don’t know what “rest” is outside the rails context:

> **[Representational state transfer](https://en.wikipedia.org/wiki/Representational_State_Transfer)**
>
> Representational state transfer (REST) is a software architectural style that was created to guide the design and development of the architecture for the World Wide Web. REST defines a set of constraints for how the architecture of an Internet-scale distributed hypermedia system, such as the Web, should behave. The REST architectural style emphasises the scalability of interactions between components, uniform interfaces, independent deployment of components, and the creation of a layered architec...

[http://rest.blueoxen.net/cgi-bin/wiki.pl?ShortSummaryOfRest](http://rest.blueoxen.net/cgi-bin/wiki.pl?ShortSummaryOfRest)

if you’re the sort of person who enjoys reading other people’s  
dissertations, this is the original architectural description (and  
the rest is probably worth reading too):

[http://www.ics.uci.edu/~fielding/pubs/dissertation/rest\_arch\_style.htm](http://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm)

-faisal

---

<div class="post-metadata">

**Author:** ![pergesu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/22d042/32.png) [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Post date:** [August 6, 2006, 5:53pm UTC](https://www.ruby-forum.com/t/can-we-use-activeresource-yet/101548/4 "2006-08-06T17:53:04Z")

</div>

On 8/5/06, Pat M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I need to split some information up between two servers, and wanted to  
> use REST for it. I can write the REST server really easily…but I  
> don’t know how I can actually use it. I downloaded Rails trunk to  
> mess with ActiveResource, but it seems that it doesn’t have create  
> functionality enabled yet.
> 
> Is it possible to use AR fully? If not, what’s the best way to  
> consume REST services?

It’s not ready. I have some code I’m using in a client app with it,  
but I’m waiting to get it approved by David. Not only does it not do  
create, it also totally ignores prefixes. I’ve hacked this in, along  
with a couple of configurable options, and I want to make sure it  
flows with the original vision.

If you’re unclear what ActiveResource is, think of it as an  
opinionated consumer for your simply restful apps.

---

<div class="post-metadata">

**Author:** ![pergesu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/22d042/32.png) [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Post date:** [August 6, 2006, 6:07am UTC](https://www.ruby-forum.com/t/can-we-use-activeresource-yet/101548/5 "2006-08-06T06:07:02Z")

</div>

> On 8/5/06, Pat M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > I need to split some information up between two servers, and wanted to  
> > use REST for it. I can write the REST server really easily…but I  
> > don’t know how I can actually use it. I downloaded Rails trunk to  
> > mess with ActiveResource, but it seems that it doesn’t have create  
> > functionality enabled yet.
> > 
> > Is it possible to use AR fully? If not, what’s the best way to  
> > consume REST services?

ActiveResource is not yet ready for prime time. There is some code in  
trunk, but it won’t do much that’s useful for you. I’m eager to get with  
ARes too, as I am about to build some cooperative web services. In the  
mean time I’ll be figuring stuff out for myself too. If I have anything  
worth sharing I’ll post something about it.

Joe Van D. wrote:

> Could someone explain (or post a link to someplace that does) what  
> this whole REST thing is, how ActiveResource helps with it, and why I  
> should care?

Joe, you should watch the video of DHH’s “World of Resources” keynote  
from RailsConf. He spends a good hour or more doing just that. Google  
for it or backread the Rails blog for a link.

–  
Josh S.  
[http://blog.hasmanythrough.com](http://blog.hasmanythrough.com)
