# RESTful routes and resulting urls

**URL:** <https://discuss.rubyonrails.org/t/restful-routes-and-resulting-urls/4664>\
**Category:** rubyonrails-talk\
**Created:** [November 17, 2006, 8:40am UTC](https://discuss.rubyonrails.org/t/restful-routes-and-resulting-urls/4664 "2006-11-17T08:40:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![felix1](https://avatars.discourse-cdn.com/v4/letter/f/3e96dc/32.png) [@felix1](https://discuss.rubyonrails.org/u/felix1)\
**Post date:** [November 17, 2006, 8:40am UTC](https://discuss.rubyonrails.org/t/restful-routes-and-resulting-urls/4664/1 "2006-11-17T08:40:32Z")

</div>

if I have the following in my routes.rb:

map.resources :product\_categories

it provides urls such as:

/product\_categories /product\_categories/1 /product\_categories/1;edit etc.

and uses the ProductCategories controller.

how can I keep the same controller (and model) but set up the resources so that I can have any abitrary url point to the existing controller, much like specifying the controller with the old style routes?

-felix
