What is the most efficient way to map URLs to database IDs.
Example:
/newspaper/article/how-interesting-is-internet
In routing the newspaper_controller gets article and how-interesting-is-internet.
Where and how should I store the mapping for clean URLs and IDs?
FriendlyId is a good plugin for this (https://github.com/norman/friendly_id)
It allows you to specify a database column that will be used to create the id (name or description or whatever) and it takes care of making everything just work.