Sha256: e0c9423e7bdd34d5c5f42e45625a765949648028516974c97fbbe96ffe25aeb0

Contents?: true

Size: 1.22 KB

Versions: 1

Compression:

Stored size: 1.22 KB

Contents

# Bootstrap Generators

## Installation

Add it to your Gemfile:

  `gem 'bootstrap-generators'`

By default Bootstrap Generators requires SimpleForm. Add the dependency on your Gemfile:

  `gem 'simple_form', '~> 1.5'`

If you don't want to use SimpleForm, and instead use the default Rails form builder, just call the install generator with `--form_builder=form_builder`.

Run the generator:

  `rails generate bootstrap:install`

Once you've done that, any time you generate a controller or scaffold, you'll get [Bootstrap](http://twitter.github.com/bootstrap/) templates.

## Form builders

### Default Rails form builder

  `rails generate bootstrap:install --form_builder=form_builder`

### SimpleForm

  `rails generate bootstrap:install --form_builder=simple_form`

## Layouts

There are three layouts available, based on the quick-start examples:

* hero (default; based on [this template](http://twitter.github.com/bootstrap/examples/hero.html))
* fluid (based on [this template](http://twitter.github.com/bootstrap/examples/fluid.html))
* container-app (based on [this template](http://twitter.github.com/bootstrap/examples/container-app.html))

To select one of these layouts just pass the option '--layout=LAYOUT' to the install generator.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bootstrap-generators-1.0.1 README.md