moved form errors to partial

This commit is contained in:
Mark Moser committed 2016-08-22 16:26:21 -05:00
1 parent 77684b2c3e
commit 8209a2293b
8 files changed
+21 -51

No files matched your search

@@ -0,0 +1,10 @@
<% if flash[:error].present? %>
<div class="error">
<%= flash[:error] %>
<p>
<% obj.errors.messages.each do |k,v| %>
<%= "#{k.to_s} #{v.join(' and ')}" %><br />
<% end %>
</p>
</div>
<% end %>