URL Shortener written in Ruby