Add scopes to the contact form field (copied from the Rails 2 branch).