In my custom.css.scss file, I have:
.field_with_errors { @extend .control-group; @extend .error; }
The problem is that for horizontal Bootstrap forms, the fields will not remain in rows.
HTML (generated by rails):
<div class="control-group"> <div class="field_with_errors"><label class="control-label" for="bookmark_url">Url</label></div> <div class="controls"> <div class="field_with_errors"><input id="bookmark_url" name="bookmark[url]" size="30" type="text" value=""></div> </div> </div>
Here is a jsfiddle example to illustrate the problem.
Does anyone know how to fix this?
mihai source share