Sign in through GitHub

clekstro's Profile

GitHub User: clekstro

Comments by

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