A url shortener written in rails