nested resources and short urls

im trying to get urls like this grandparent/child/parent but i can only seem to get this: grandparent_type/grandparent/parent_type/parent/ child_type/type is there any way to achieve this with rest for rails? marc