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! -- Posted via http://www.ruby-forum.com/.
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 http://github.com/hashtrain/acts_as_random_id/tree/master -- Posted via http://www.ruby-forum.com/.