我有一个看起来像这样的表单 views/profiles/_form
<div class="field2">
<%= f.label :purchase_date, "Date this horse was purchased" %><br />
<%= f.date_select :purchase_date %>
</div>
<div class="field2">
<%= f.label :owner_name, "Owner Name" %><br />
<%= f.text_field :owner_name %>
</div>
我在我的模型/profile.rb 中添加了什么验证
验证:purchase_date ??????????