stouset / twitter_bootstrap_form_for

A Rails FormBuilder DSL for generating Twitter Bootstrap forms
https://github.com/stouset/twitter_bootstrap_form_for
MIT License
410 stars 107 forks source link

Wrong class on input wrappers #74

Closed hron84 closed 11 years ago

hron84 commented 11 years ago

Normal input rendered with this markup:

<div class="clearfix" id="post_video_input">
  <div class="input">
    <input id="post_video" name="post[video]" size="30" type="text" />
  </div>
</div>

Latest Twitter bootstrap requires following markup (I kept current classes too):

<div class="control-group clearfix" id="post_video_input">
  <div class="controls input">
    <input id="post_video" name="post[video]" size="30" type="text" />
  </div>
</div>

Plus, on validation errors .control-group should marked with error class to make input as red.

For details, check latest docs