An open API service indexing awesome lists of open source software.

https://github.com/llopez/twitter_bootstrap_form_builder

A Form Builder for Rails3 with TwitterBootstrap styles
https://github.com/llopez/twitter_bootstrap_form_builder

Last synced: 10 months ago
JSON representation

A Form Builder for Rails3 with TwitterBootstrap styles

Awesome Lists containing this project

README

          

# TwitterBootstrapFormBuilder

Simple FormBuilder for Rails3 using TwitterBootstrap Css Framework

## Installation

Add this line to your application's Gemfile:

gem 'twitter_bootstrap_form_builder', :git => "git@github.com:llopez/twitter_bootstrap_form_builder.git"

And then execute:

$ bundle

## Usage

It is very simple. Do the next.

= form_for @resource, builder: TwitterBootstrapFormBuilder::FormBuilder, html: {class: "form-horizontal"} do |f|
= f.text_field :name
= f.submit

And you will get the following:



Name


Errors appear here.







## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request