Module: BootstrapFormBuilder::Helpers

Defined in:
lib/bootstrap_form_builder/helpers.rb

Instance Method Summary collapse

Instance Method Details

#bootstrap_fields_for(*args, &block) ⇒ Object



8
9
10
11
# File 'lib/bootstrap_form_builder/helpers.rb', line 8

def bootstrap_fields_for(*args, &block)
  options = args.extract_options!
  fields_for(*args, options.merge(builder: BootstrapFormBuilder::FormBuilder), &block)
end

#bootstrap_form_for(*args, &block) ⇒ Object



3
4
5
6
# File 'lib/bootstrap_form_builder/helpers.rb', line 3

def bootstrap_form_for(*args, &block)
  options = args.extract_options!
  form_for(*args, options.merge(builder: BootstrapFormBuilder::FormBuilder), &block)
end