URL Shortener written in Rails