Introduction to ActiveRecord & associations; builds a unique shortkey for a URL.