socialforge/app/views/no_uses/_form.html.erb

18 lines
410 B
Plaintext

<%= form_for(@no_use) do |f| %>
<% if @no_use.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@no_use.errors.count, "error") %> prohibited this no_use from being saved:</h2>
<ul>
<% @no_use.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="actions">
<%= f.submit %>
</div>
<% end %>