# Help with routing

**URL:** <https://www.ruby-forum.com/t/help-with-routing/194107>\
**Category:** Rails\
**Created:** [August 30, 2010, 3:31pm UTC](https://www.ruby-forum.com/t/help-with-routing/194107 "2010-08-30T15:31:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zurich\_by\_night](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/d78d45/32.png) [@zurich\_by\_night](https://www.ruby-forum.com/u/zurich_by_night)\
**Post date:** [August 30, 2010, 3:31pm UTC](https://www.ruby-forum.com/t/help-with-routing/194107/1 "2010-08-30T15:31:03Z")

</div>

From this url: [http://localhost:3000/cities/new-york/deals/title-of-deal](http://localhost:3000/cities/new-york/deals/title-of-deal)  
how can i change it to [http://localhost:3000/new-york/foobar](http://localhost:3000/new-york/foobar) ? How do  
i configure this in my route?

Should i be looking at named routes for this?

Anyone experience with setting up routes like this. Please advise.  
Also, does this type of routing still follow the RESTful convention?

Im also using [http://norman.github.com/friendly\_id/](http://norman.github.com/friendly_id/) to display a  
different column, rather than the id. For example:

[http://localhost:3000/cities/new-york](http://localhost:3000/cities/new-york) instead of  
[http://localhost:3000/cities/1](http://localhost:3000/cities/1)
