Skip to content
This repository has been archived by the owner on Oct 12, 2018. It is now read-only.

Commit

Permalink
Model error messages when editing artefacts
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanHatch committed Feb 10, 2012
1 parent 80b4ea1 commit 93c6e65
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/views/artefacts/_form.html.erb
Expand Up @@ -2,6 +2,14 @@
<p class="flash-notice"><%= flash[:notice] %></p>
<% end %>
<% if artefact.errors.count > 0 %>
<ul class="flash-alert">
<% artefact.errors.full_messages.each do |message| %>
<li><%= message %></li>
<% end %>
</ul>
<% end %>

<div id="panopticon" class="ui-widget-content">
<%= semantic_form_for(artefact, :html => { :class => 'artefact' }) do |f| %>
<%= f.inputs :name => "Basic information" do %>
Expand Down

0 comments on commit 93c6e65

Please sign in to comment.