%= form_for @customer, html: {class: "form-horizontal"} do |f| %> <% if @customer.errors.any? %> <%= raw errors_to_html(@customer.errors) %> <% end %>