$(function() {

$('.field_with_errors').addClass('has-error');

});