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