Help with routing

From this url: http://localhost:3000/cities/new-york/deals/title-of-deal how can i change it to 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 to display a different column, rather than the id. For example:

http://localhost:3000/cities/new-york instead of http://localhost:3000/cities/1