Any way to hide / mask / salt record ID?

In RoR applications, each record is accessed by its own ID, usually as in products/ID. However, I'd prefer that users not be able to know how many records are in the database nor be able to access them on an incremental basis. Is there any way to hide or mask this ID through the use of an alternate? Salting the IDs seems like it could work, but I'm not sure how to do it - if its even the right way.

Thanks in advance!

Robert Scott wrote:

In RoR applications, each record is accessed by its own ID, usually as in products/ID. However, I'd prefer that users not be able to know how many records are in the database nor be able to access them on an incremental basis. Is there any way to hide or mask this ID through the use of an alternate? Salting the IDs seems like it could work, but I'm not sure how to do it - if its even the right way.

Thanks in advance!

see a plugin GitHub - hashtrain/acts_as_random_id: Rails plugin for generating random id