title: How to change the default rails error div "field_with_errors"
body: <p>I'm using <a href="https://github.com/NoamB/sorcery">sorcery</a> for authentication along with <a href="http://twitter.github.com/bootstrap/">twitter bootstrap</a>.</p>
  
  <p>I'd like to style my error messages on my signup form in the style of twitter's bootstrap by changing the default rails <code>&lt;div class="field_with_errors"&gt;</code> that gets added to the DOM.</p>
  
  <p>What's the rails convention for doing something like this?</p>
  
  <p>I suppose you could add some javascript that manipulates the DOM to rename <code>&lt;div class="field_with_errors"&gt;</code>, but that seems like a hack. It seems like there should be a way to override this in rails, but I can't figure out where to do that.</p>
  
  <p>This is how bootstrap requires you to mark up your error to use its built in form error styles:</p>
  
  <pre><code>&lt;div class="control-group error"&gt;
    &lt;label class="control-label" for="inputError"&gt;Input with error&lt;/label&gt;
    &lt;div class="controls"&gt;
      &lt;input type="text" id="inputError"&gt;
      &lt;span class="help-inline"&gt;Please correct the error&lt;/span&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>