Skip to content

Instantly share code, notes, and snippets.

@MilanGrubnic70
Created June 8, 2014 16:21
Show Gist options
  • Save MilanGrubnic70/92d6d16af1f06d468a2f to your computer and use it in GitHub Desktop.
Save MilanGrubnic70/92d6d16af1f06d468a2f to your computer and use it in GitHub Desktop.
Error Display
<%= display_errors(@user) %>
<% unless @user.errors.eppty? %>
<div class="errors">
<% @user.errors.full_messages.each do |message| %>
<p><%= message %></p>
<% end %>
</div>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment