# Frustrations with routing

**URL:** <https://www.ruby-forum.com/t/frustrations-with-routing/196435>\
**Category:** Rails\
**Created:** [August 17, 2007, 10:59pm UTC](https://www.ruby-forum.com/t/frustrations-with-routing/196435 "2007-08-17T22:59:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cidol](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/54ee81/32.png) [@cidol](https://www.ruby-forum.com/u/cidol)\
**Post date:** [August 17, 2007, 10:59pm UTC](https://www.ruby-forum.com/t/frustrations-with-routing/196435/1 "2007-08-17T22:59:42Z")

</div>

Lets say I’ve got this mapped out

map.resources :owners do |owners|  
owners.resources :possessions

This gives me routes looking like this:

…/owners/:id/  
…/owners/:owner\_id/possessions/:id/

I’m very frustrated that the routes do not look like this:

…/owners/:owner\_id/  
…/owners/:owner\_id/possessions/:possession\_id/

This causes problems when I want to share code between these  
controllers that uses either.

params[:id] \<-- meaning the id of the owner  
params[:owner\_id]

Lord this gets my goat and jives my Johnson the wrong way.
