Simple urlshortner using Ruby on Rails