# How can i clear the inner resources route in a nested route

**URL:** <https://www.ruby-forum.com/t/how-can-i-clear-the-inner-resources-route-in-a-nested-route/147569>\
**Category:** Rails\
**Created:** [September 3, 2008, 8:15am UTC](https://www.ruby-forum.com/t/how-can-i-clear-the-inner-resources-route-in-a-nested-route/147569 "2008-09-03T08:15:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![swachian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ea666f/32.png) [@swachian](https://www.ruby-forum.com/u/swachian)\
**Post date:** [September 3, 2008, 8:15am UTC](https://www.ruby-forum.com/t/how-can-i-clear-the-inner-resources-route-in-a-nested-route/147569/1 "2008-09-03T08:15:48Z")

</div>

I have :  
map.resources :users do |users|  
user.resources :addressbooks  
end  
this provide me with url like ‘/users/1/addressbooks/1’ and ‘/  
addressbooks/1’.  
My problem is that how i’m able to clear the ‘/addressbooks/1’ route  
and making it not to work? I only wanna the former to work.
