Module: Formstrap::FormHelper
- Defined in:
- lib/formstrap/form_helper.rb
Instance Method Summary collapse
- #formstrap_form_for(record, options = {}, &block) ⇒ Object
- #formstrap_form_with(options = {}, &block) ⇒ Object
Instance Method Details
#formstrap_form_for(record, options = {}, &block) ⇒ Object
3 4 5 6 7 |
# File 'lib/formstrap/form_helper.rb', line 3 def formstrap_form_for(record, = {}, &block) # ToDo: Can we pass info about the view here (e.g. host, protocol ...) = .reverse_merge({builder: Formstrap::FormBuilder}) form_for(record, , &block) end |
#formstrap_form_with(options = {}, &block) ⇒ Object
9 10 11 12 13 |
# File 'lib/formstrap/form_helper.rb', line 9 def formstrap_form_with( = {}, &block) # ToDo: Can we pass info about the view here (e.g. host, protocol ...) = .reverse_merge({builder: Formstrap::FormBuilder}) form_with(**, &block) end |