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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs