I have members with usernames. In the event that a new member requests
an already-existing username, I’d like to automatically “increment” a
next-best string:
johnny
johnny1
johnny2
Knowing RoR, my gut tells me there’s some elegant, concise way to do
this, but I can’t think of it. Any advice?
I have members with usernames. In the event that a new member requests
an already-existing username, I’d like to automatically “increment” a
next-best string:
johnny
johnny1
johnny2
Knowing RoR, my gut tells me there’s some elegant, concise way to do
this, but I can’t think of it. Any advice?