# ActiveResource and Links

**URL:** <https://www.ruby-forum.com/t/activeresource-and-links/92485>\
**Category:** Rails\
**Created:** [April 19, 2007, 11:06pm UTC](https://www.ruby-forum.com/t/activeresource-and-links/92485 "2007-04-19T23:06:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 19, 2007, 11:06pm UTC](https://www.ruby-forum.com/t/activeresource-and-links/92485/1 "2007-04-19T23:06:05Z")

</div>

Is there a way to get ActiveResource to intelligently handle resource  
documents that contain links to other resources? For example lets say  
we have a tree hierarchy, where a child resource belongs to a parent  
resource, and parents have children. The service returns a document  
describing one resources, with a link to a parent. For example:

GET [http://my-host/my-resources/456](http://my-host/my-resources/456)’ # =\>

 a name 

What’s the best way to walk that tree with ActiveResource? Ideally  
I’d like to avoid using the parent id and use the parent href instead,  
as it seems more RESTful. But whatever works.

Thanks.

Steve
