ffmprovisr/app/views/forms/_form.html.erb

18 lines
408 B
Plaintext
Raw Normal View History

2014-08-04 03:43:33 +02:00
<%= form_for(@form) do |f| %>
<% if @form.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@form.errors.count, "error") %> prohibited this form from being saved:</h2>
<ul>
<% @form.errors.full_messages.each do |message| %>
<li><%= message %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="actions">
<%= f.submit %>
</div>
<% end %>