Skip to content

Instantly share code, notes, and snippets.

@jacobsimeon
Created August 28, 2013 19:48
Show Gist options
  • Select an option

  • Save jacobsimeon/6370405 to your computer and use it in GitHub Desktop.

Select an option

Save jacobsimeon/6370405 to your computer and use it in GitHub Desktop.
displaying an error summary
<%= simple_form_for(@user) do |f| %>
<div class="form-errors">
<% @user.errors.full_messages.each |msg| %>
<div class="error-message">
<%= msg %>
</div>
<% end %>
</div>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment