ruby on rails 3 - Best way to generate bit.ly or twitpic style ids? -


for personal project i'm working on, i'd generate ids objects on website in same style sites bit.ly , twitpic. sending users example.com/4gwv9k let me item id 9gwv9k. question of auto-incrementing on base-36 scheme or there underlying, non-incrementing magic going on?

this being done in rails, gem support welcome well.

here's example on did in sinatra.

https://github.com/chrisledet/shorty_url


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -