title: generating random primary id in rails 3
body: <p>I have different models like Customer, User, Admin etc in my rails app. I would like to make the primary id as string and prepend it with a character. so for customers, the id would be something like C1, C2, C3. For Users it will be U1, U2, U3 etc..</p>