The django-extensions project provides several simple ways to avoid this - just make URL's reference UUIDs or slugs. I imagine RoR has something similar.
http://github.com/django-extensions/django-extensions/blob/m...
http://github.com/django-extensions/django-extensions/blob/m...
class User < ActiveRecord::Base
def to_param
self.login
end
...
end
Assuming self.login is reliably unique. Although I've found this can still have some follow on effects that could need to be handled in a situation similar to the above. There are also some heavier weight, more feature filled options of course.Which link is less scary?
http://secret-project/item/phillip-lim-pleated-printed-silk-...
or
http://secret-project/item/47a61d7c-dde1-11df-ba19-0026c72a6...