# Advantage of nested resources?

**URL:** <https://www.ruby-forum.com/t/advantage-of-nested-resources/125092>\
**Category:** Rails\
**Created:** [January 5, 2008, 10:26am UTC](https://www.ruby-forum.com/t/advantage-of-nested-resources/125092 "2008-01-05T10:26:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chirag](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecccb3/32.png) [@chirag](https://www.ruby-forum.com/u/chirag)\
**Post date:** [January 5, 2008, 10:26am UTC](https://www.ruby-forum.com/t/advantage-of-nested-resources/125092/1 "2008-01-05T10:26:05Z")

</div>

I don’t know if I understand the advantage of a nested REST resource.  
Is it simply the cleaner URL?

This web site shows 6 different steps to get it to work:  
[http://earthcode.com/blog/2007/01/nested\_crud\_resources\_in\_rails.html](http://earthcode.com/blog/2007/01/nested_crud_resources_in_rails.html)

I have about 8 or 10 resources that could be nested under Users, which  
would be somewhat laborious to me.

Right now I simply pass in the user\_id as a field. Can someone tell me  
if it would be advantageous for me to use use nested resources?

Thanks,  
Chirag
