I can view any User' object's `show` page in my app using the url

```
/users/:id
# eg. /users/7

```

Instead of using the `id` from my database, I wanted to use a unique hash id that I generate for each user. It looks neater and avoids exposing my sequential DB information

```
/users/kF87sl8H2

```

However I lose the convenience of using the route path helper I was previously using - `user_path(@user)`. I now have to replace it in multiple places with `user_path(id: @user.hash_id)`

Is there a way to keep the old route helper and just pass it my `@user` instance? I assume it involves overriding the path helper somehow?

Also, marginally related - is there a best practice around generating those hash ID's? I was just going to use `SecureRandom.hex`, but I know Google+ uses numbers only and Youtube uses different case letters

e.g. <https://www.youtube.com/watch?v=dQw4w9WgXcQ>

Is there a good way to generate those?

Thanks!