# RESTful routes and resulting urls

**URL:** <https://discuss.rubyonrails.org/t/restful-routes-and-resulting-urls/4672>\
**Category:** rubyonrails-talk\
**Created:** [November 17, 2006, 1:30pm UTC](https://discuss.rubyonrails.org/t/restful-routes-and-resulting-urls/4672 "2006-11-17T13:30:08Z")\
**Posts on this page:** 2\
**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, 1:30pm UTC](https://discuss.rubyonrails.org/t/restful-routes-and-resulting-urls/4672/1 "2006-11-17T13:30:08Z")

</div>

with RESTful routes if I place the following in routes.rb:

map.resources :messages

I get the following urls:

/messages /messages/1 /messages/1;edit etc...

and they all use the Messages controller

Is it possible to still use the same controller but to change the url much like the old routes:

map.connect '/blah/:action/:id', :controller =\> 'messages'

This allows me to have an abitrary url for any controller

-felix

---

<div class="post-metadata">

**Author:** ![Jamie\_Orchard-Hays1](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@Jamie\_Orchard-Hays1](https://discuss.rubyonrails.org/u/Jamie_Orchard-Hays1)\
**Post date:** [November 20, 2006, 10:43pm UTC](https://discuss.rubyonrails.org/t/restful-routes-and-resulting-urls/4672/2 "2006-11-20T22:43:15Z")

</div>

It looks to me like your trying to mingle the old style urls with the  
new RESTful urls. I don't see the point. If you just want the old  
style, use those rather than RESTful style.
