bootstrap-generators 0 ruby Rubygems

Bootstrap-generators provides Twitter Bootstrap generators for Rails 3

6 years after

Bootstrap Generators

Bootstrap-generators provides Twitter Bootstrap generators for Rails 3.1. Bootstrap is a toolkit from Twitter designed to kickstart development of webapps and sites. Checkout http://twitter.github.com/bootstrap.

Rails 3.1 setup

This gem requires the use of rails 3.1.

Installation

In your Gemfile, add this line:

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.

Then run the following commands:

bundle install

rails generate bootstrap:install

Once you've done that, any time you generate a controller or scaffold, you'll get 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:

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

Related Repositories

twitter-bootstrap-rails

twitter-bootstrap-rails

Twitter Bootstrap for Rails 3.1 Asset Pipeline (Updated to Bootstrap 2) ...

adminlte-generators

adminlte-generators

AdminLTE-generators provides AdminLTE generators for Rails 4 ...

twitter-bootstrap-rails

twitter-bootstrap-rails

Twitter Bootstrap for Rails 3.1 Asset Pipeline (Updated to Bootstrap 2) ...

twitter-bootstrap-rails

twitter-bootstrap-rails

Twitter Bootstrap for Rails 3.1 Asset Pipeline (Updated to Bootstrap 2) ...

twitter-bootstrap-rails

twitter-bootstrap-rails

Twitter Bootstrap for Rails 3.1 Asset Pipeline (Updated to Bootstrap 2) ...


Top Contributors

decioferreira technicalpickles activefx

Releases

-   v1.4.0 zip tar
-   v1.0.1 zip tar
-   v1.0.0 zip tar
-   v0.0.6 zip tar
-   v0.0.5 zip tar
-   v0.0.4 zip tar
-   v0.0.3 zip tar
-   v0.0.2 zip tar
-   v0.0.1 zip tar