/ Published in: Rails
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<% if !@object.errors.empty? %> <div class="errorExplanation" id="errorExplanation"> <ul> <% for e in @object.errors %> <li><%= e[1] %></li> <% end %> </ul> </div><br /> <% end %>