title: Rails add div to form fields which pass validation, like "fields_with_errors" div on failure
body: <p>I would like to apply a style to <strong>successfully validated fields</strong> as well as <strong>failed fields</strong>.</p>
  
  <p>I am using the <strong>fields_with_errors</strong> div which is applied around form elements which fail validation. I would like to extend this behaviour to apply <strong>fields_without_errors</strong> styled div around successfully validated fields. </p>
  
  <p>For example when rails validation fields, the rendered view returns as follows:</p>
  
  <pre><code>&lt;div class="field_with_errors"&gt;&lt;input class="input" size="30" type="text" value="" name="seller_profile[business_phone_number]" id="seller_profile_business_phone_number"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>The original erb code was:</p>
  
  <pre><code>&lt;div class="row"&gt;
          &lt;label for="telephone"&gt;Company telephone&lt;/label&gt;
          &lt;br /&gt;
         &lt;%=f.text_field :business_phone_number, :class=&gt;"input", size:"30" %&gt;
          &lt;div class="errors"&gt;
          &lt;%if @profile.errors[:business_phone_number].any? %&gt;
          Phone number &lt;%= @profile.errors[:business_phone_number].join(", ")%&gt;
          &lt;% end %&gt;
          &lt;/div&gt;
          &lt;br /&gt;
        &lt;/div&gt;
  </code></pre>
  
  <p>This works very well. However for fields which have passed validation, they do not get wrapped in a div stating validation has passed.</p>
  
  <p>I would like fields which pass validation to look as follows:</p>
  
  <pre><code> &lt;div class="field_without_errors"&gt;&lt;input class="input" size="30" type="text" value="" name="seller_profile[business_description]" id="seller_profile_business_description"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I.e they are wrapped in a div with a class of "field_without_errors".Is there a way for me to add this behaviour in rails?</p>