Can we use ActiveResource yet?

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

On 8/5/06, Pat M. [email protected] 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

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:


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

-faisal

On 8/5/06, Pat M. [email protected] 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.

On 8/5/06, Pat M. [email protected] 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs