I am developing a web application in which I have implemented Facebook and Twitter connectivity.I want to shorten the url when user post to facebook or twitter from my apllication. For example if url is http://www.MyDomain.com/user/234545 then it should be somwthing like http://M.D/n2b
How can I do that. Please help & also please give me more info about how actually the url shorter works and how to implement it in rails