请大家,我的rails项目使用devise,simple_form和bootstrap gem,但是当用户提交下面的form.my表单代码时,我的验证错误不显示
<%= simple_form_for :book , url:{action:"create"}, html:{class:'form-horizontal'} do |f| %>
<%= f.error_notification %>
<table class='table' id='book-table'>
<div class='form-inputs'>
<tr>
<td class='label-td'>FIRSTNAME</td>
<td> <%= f.input :firstname, required:true,label:false,autofocus: true, error:'needed please' %></td>
</tr>
<tr>
<td class='label-td'>LASTNAME</td>
<td><%= f.input :lastname ,label:false , input_html:{class:'span1'} %></td>
</tr>
<tr>
<td class='label-td'>REG NUMBER</td>
<td><%= f.input :reg_number , as: :tel, input_html:{ maxlength: 11}, label:false %></td>
</tr>