With Rails 3
you need include ActionView::Helpers::UrlHelper in your Model and define the message like a lambda to be interpret when needed
class XXX < AR
extend ActionView::Helpers::UrlHelper
validates_acceptance_of :not_an_agency, :on => :create,
:message => lambda {"must be confirmed. If you are an agency please #{link_to "Contact Us", contact_path}"}
end
With Rails 2
it's the same but you need define the :host each time.
class XXX < AR
extend ActionView::Helpers::UrlHelper
validates_acceptance_of :not_an_agency, :on => :create,
:message => lambda {"must be confirmed. If you are an agency please #{link_to "Contact Us", contact_path(:host => 'http://example.org')}"}
end