RailsCasts Pro episodes are now free!

Learn more or hide this

Curtis Ekstrom's Profile

GitHub User: clekstro

Site: www.canvus.io

Comments by Curtis Ekstrom

Avatar

The entire form can be given a class, for instance to use twitter's bootstrap, through the following:

ruby
def boot_form_for(object, options={}, &block)
    options[:builder] = Bootstrapped
    options[:html] = { :class => "form-horizontal" }
    form_for(object, options, &block)
end