nested routes (2)

You should use named route for this case. So if you want /users/<clicked_id>/relationships/network.xml

define name route like this:

map.network ‘/users/:clicked_id/relationships’, :controller => ‘your_controller’, :action => ‘network’

when you do rake routes, you will see the URL helper method for this definition use that with the clicked_id as the parameter.