<%= form_for(@image) do |f| %> <% if @image.errors.any? %>

<%= pluralize(@image.errors.count, "error") %> prohibited this image from being saved:

<% end %>
<%= f.submit %>
<% end %>