This is a fork of mjbellantoni/formtastic-bootstrap with some changes:
- Merged mjbellantoni/formtastic-bootstrap/pull/43 by jisk: Move help-inline error sentences inside their control's div
- Merged mjbellantoni/formtastic-bootstrap/pull/44 by thejbsmith: Adding Appended and Prepended Text
- Merged mjbellantoni/formtastic-bootstrap/pull/46 by cluesque: Only label a checkbox once
This also solves issues 42 and 45. Specs seem to be broken when I started this fork and will be fixed in a future commit.
A Formtastic form builder that creates markup suitable for the Twitter Bootstrap framework. In theory, it should just work. Two great tastes in one!
Install the gem with
gem install formtastic-bootstrap
Or add it to your Gemfile:
gem 'formtastic-bootstrap'
And install it with bundle install.
Add the following line to your Formtastic initialization file:
# config/initializers/formtastic.rb
Formtastic::Helpers::FormHelper.builder = FormtasticBootstrap::FormBuilder
Add the following line to the top of your application.css file:
# app/assets/stylesheets/application.css
*= require formtastic-bootstrap
Make sure you've already downloaded and installed Formtastic!