Testing in template for required attribute

Is there a way to say in the template Model.required?(attribute) if
validates_presence_of is used on the attribute?