Skip to content

Instantly share code, notes, and snippets.

@danielmorrison
Last active September 24, 2015 04:57
Show Gist options
  • Save danielmorrison/671304 to your computer and use it in GitHub Desktop.
Save danielmorrison/671304 to your computer and use it in GitHub Desktop.
put inside auctions/new.html.erb
<% if form.object.errors.any? %>
<div id="error_explanation">
<h2>The following errors prohibited this form from being saved:</h2>
<ul>
<% form.object.errors.full_messages.each do |message| %>
<li><%= message %></li>
<% end %>
</ul>
</div>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment