my lame attempt at a url shortener in rails