upgrading URLShortener to rails 4