Skip to content

Instantly share code, notes, and snippets.

View glongman's full-sized avatar

Geoff Longman glongman

View GitHub Profile
@glongman
glongman / bootstrap.rb
Created March 3, 2012 20:02 — forked from jamiepenney/bootstrap.rb
Form builder for Twitter Bootstrap v2 form elements [Fork]
# This file goes in config/initializers
require 'bootstrap_form_builder'
# Make this the default Form Builder. You can delete this if you don't want form_for to use
# the bootstrap form builder by default
ActionView::Base.default_form_builder = BootstrapFormBuilder::FormBuilder
# Add in our FormHelper methods, so you can use bootstrap_form_for.
ActionView::Base.send :include, BootstrapFormBuilder::FormHelper