%= form_for @image, :html => { :multipart => true } do |f| %> <%- if @image.errors.any? -%>
<%= pluralize(@image.errors.count, "error") %> prohibited this from being saved:
<%= f.label :name, "Name:" %> <%= f.text_field :name %>
<%= f.label :file, "File:" %> <%= f.file_field :file %>
<%= f.submit %> <%= link_to 'Cancel', images_path %>
<% end %>