Minor thing - how about Briefly::Application.config.shortener_url which includes the port for development? (Adding the port in less places can be more maintainable)