# Testing in template for required attribute

**URL:** <https://www.ruby-forum.com/t/testing-in-template-for-required-attribute/192441>\
**Category:** Rails\
**Created:** [July 30, 2010, 11:37am UTC](https://www.ruby-forum.com/t/testing-in-template-for-required-attribute/192441 "2010-07-30T11:37:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mlle](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/eada6e/32.png) [@Mlle](https://www.ruby-forum.com/u/Mlle)\
**Post date:** [July 30, 2010, 11:37am UTC](https://www.ruby-forum.com/t/testing-in-template-for-required-attribute/192441/1 "2010-07-30T11:37:34Z")

</div>

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