Created
September 29, 2011 22:03
-
-
Save alkema/1252071 to your computer and use it in GitHub Desktop.
Generate form markup that twitter bootstrap uses with simple_form for Rails 3.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Relevant Gemfile: | |
gem 'rails', '3.1.0' | |
group :assets do | |
gem 'coffee-rails', "~> 3.1.0" | |
gem 'uglifier' | |
gem 'twitter-bootstrap-rails', :git => 'http://github.com/seyhunak/twitter-bootstrap-rails.git' | |
end | |
gem 'simple_form', :git => 'git://github.com/plataformatec/simple_form.git' | |
Configure simple_form for Twitter Bootstrap: | |
https://github.com/plataformatec/simple_form/wiki/Twitter-Bootstrap-integration | |
https://github.com/rafaelfranca/simple_form-bootstrap/blob/master/config/initializers/simple_form.rb | |
Example app: | |
https://github.com/rafaelfranca/simple_form-bootstrap | |
Example form: | |
https://github.com/rafaelfranca/simple_form-bootstrap/blob/master/app/views/articles/_form.html.erb | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment