# Nested resources routes

**URL:** <https://www.ruby-forum.com/t/nested-resources-routes/141735>\
**Category:** Rails\
**Created:** [June 30, 2008, 8:24am UTC](https://www.ruby-forum.com/t/nested-resources-routes/141735 "2008-06-30T08:24:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bewhite](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/848f3c/32.png) [@bewhite](https://www.ruby-forum.com/u/bewhite)\
**Post date:** [June 30, 2008, 8:24am UTC](https://www.ruby-forum.com/t/nested-resources-routes/141735/1 "2008-06-30T08:24:27Z")

</div>

Hi!  
I’ve got a quick question in routing.  
Is there any difference between

map.resources :stuff, :has\_many =\> :inner\_stuff

AND

map.resources :stuff do |stuff|  
stuff.resources :inner\_stuff  
end

?

Both calls seem to do the same thing - they just register the  
:inner\_stuff as a resource inside :stuff resource (in terms of routes).  
Do they?

Thanks
