Use hashids when you do not want to expose your database ids to the user.
Peter Hellberg
gem "hashids", "~> 0.0.5"