%= form_for attached_file, :html => { :class => "form-horizontal attached_file" } do |f| %>
<% if attached_file.errors.any? %>
<%= pluralize(attached_file.errors.count, "error") %> prohibited this attached_file from being saved:
<% attached_file.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<% end %>