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

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

<% end %>
<%= f.label :username %>
<%= f.text_field :username %>
<%= f.label :image_file %>
<%= f.file_field :image_file %>
<% unless @user.new_record? %>
<%= f.check_box :remove_image %> <%= f.label :remove_image %>
<% end %>
<%= f.submit %>
<% end %>