# Routing inspection

**URL:** <https://www.ruby-forum.com/t/routing-inspection/169187>\
**Category:** Rails\
**Created:** [May 31, 2009, 5:40am UTC](https://www.ruby-forum.com/t/routing-inspection/169187 "2009-05-31T05:40:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![satynos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e9bcb4/32.png) [@satynos](https://www.ruby-forum.com/u/satynos)\
**Post date:** [May 31, 2009, 5:40am UTC](https://www.ruby-forum.com/t/routing-inspection/169187/1 "2009-05-31T05:40:36Z")

</div>

Is there any way possible to get the child paths given a path?

I mean given the following routes:

map.resources :users do |user|  
user.resources :articles  
…  
end

If I give path = “users/1”, is there any way to get the routes  
users/1/edit, users/1/articles, users/1/articles/new ?

Thanks in advance.  
-Satynos

---

<div class="post-metadata">

**Author:** ![satynos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e9bcb4/32.png) [@satynos](https://www.ruby-forum.com/u/satynos)\
**Post date:** [May 31, 2009, 6:22am UTC](https://www.ruby-forum.com/t/routing-inspection/169187/2 "2009-05-31T06:22:05Z")

</div>

rake routes ?

---

<div class="post-metadata">

**Author:** ![satynos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e9bcb4/32.png) [@satynos](https://www.ruby-forum.com/u/satynos)\
**Post date:** [May 31, 2009, 7:27pm UTC](https://www.ruby-forum.com/t/routing-inspection/169187/3 "2009-05-31T19:27:38Z")

</div>

Freddy:

Yeh, I am currently looking at the code in the rake task of routes to  
get an insight. I guess I need to do some interpolation to get what I  
want. I will post my findings.

-Satynos  
Freddy A. wrote:

> rake routes ?
