A url shortner application in rails