It’s easy to add a “url” or “slug” field to your rails app, and override the to_param function to report that field. A route can then look for an alphanumeric parameter, like this:
match "pages/:slug" => "purchases#show_by_slug"
But how to generate them without too much manual labour? [manual labour is a good thing, relying on well written gems is sometimes better]