Rails application to shorten urls similar to bit.ly