/formtastic-bootstrap

Formtastic form builder to generate Twitter Bootstrap-friendly markup.

Primary LanguageRubyMIT LicenseMIT

Fork

This is a fork of mjbellantoni/formtastic-bootstrap with some changes:

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.

Formtastic Bootstrap

A Formtastic form builder that creates markup suitable for the Twitter Bootstrap framework. In theory, it should just work. Two great tastes in one!

Installation

Install the gem with

gem install formtastic-bootstrap

Or add it to your Gemfile:

gem 'formtastic-bootstrap'

And install it with bundle install.

Configuration

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!