Module: BootstrapForms::Helpers::FormHelper
- Defined in:
- lib/bootstrap_forms/helpers/form_helper.rb
Instance Method Summary collapse
- #bootstrap_fields_for(record, instance_or_collection = nil, &block) ⇒ Object
- #bootstrap_form_for(record, path, options = {}, &block) ⇒ Object
Instance Method Details
#bootstrap_fields_for(record, instance_or_collection = nil, &block) ⇒ Object
11 12 13 |
# File 'lib/bootstrap_forms/helpers/form_helper.rb', line 11 def bootstrap_fields_for(record, instance_or_collection = nil, &block) fields_for(record, instance_or_collection, &block) end |
#bootstrap_form_for(record, path, options = {}, &block) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/bootstrap_forms/helpers/form_helper.rb', line 4 def bootstrap_form_for(record, path, = {}, &block) [:builder] = BootstrapForms::FormBuilder form_for(record, path, ) do |f| capture(f, &block) end end |