A small tinyurl clone in Rails 3