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