We Recommend

The Rails Way The Rails Way
Now, for the first time, there’s a comprehensive, authoritative guide to building production-quality software with Rails. Pioneering Rails developer Obie Fernandez and a team of experts illuminate the entire Rails API, along with the Ruby idioms, design approaches, libraries, and plug-ins that make Rails so valuable.


Posted By

bordalix on 07/13/07


Tagged

errors rails localized


Versions (?)


Rails errors localized


Published in: Rails 


  1. <% if !@object.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 

You need to login to post a comment.