Take some inspiration from simple form's creator: https://github.com/rafaelfranca/simple_form-bootstrap