Rails errors localized


/ Published in: Rails
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <% if [email protected]errors.empty? %>
  2. <div class="errorExplanation" id="errorExplanation">
  3. <ul>
  4. <% for e in @object.errors %>
  5. <li><%= e[1] %></li>
  6. <% end %>
  7. </ul>
  8. </div><br />
  9. <% end %>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.