RESTful routes and resulting urls

with the old routing you used to be able to specify an abitrary route
for any controller like so:

map.connect "blah/:action/:id", :controller => 'foo'

how can i do this with the new RESTful resources??


You can mix old and new routes together.

I know I can have them both but I have some nested routes and the url
is becoming a little long. what i wanted to do is 'alias' some of the
sections on the url so that the result is much shorter.

an example:




these are short examples but there are longer urls because of my model

thanks for you suggestions.


Try this?
map.resources :cats, :controller_name => 'product_categories do |cats|
  map.resources :products