This is how I am displaying them for my form object called @location:
<% if @location.errors.any? %>
<ul>
<% @location.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
<% end %>
Note: put the above code after the <%= form_for @location do |f| %>
line
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…