rubyuuidbase62

no implicit conversion of String into Integer base62 encode rails


uuid = Digest::SHA256.digest(SecureRandom.uuid)
id = Base62.encode(uuid)

no implicit conversion of String into Integer

line = id = Base62.encode(uuid)


Solution

  • for pass string to base62

    uuid = SecureRandom.uuid.gsub("-", "").hex
    @id = uuid.base62_encode