Simple URL shortener in Rails