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
- Host: GitHub
- URL: https://github.com/llopez/twitter_bootstrap_form_builder
- Owner: llopez
- License: mit
- Created: 2012-10-07T02:16:46.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-10-07T03:05:11.000Z (over 13 years ago)
- Last Synced: 2025-04-03T13:49:28.290Z (about 1 year ago)
- Language: Ruby
- Size: 97.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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