Skip to content

Instantly share code, notes, and snippets.

@alkema
Created September 29, 2011 22:03
Show Gist options
  • Save alkema/1252071 to your computer and use it in GitHub Desktop.
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
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