A sample url shortener built in rails from scratch