Module: Ariadne::FormHelper
- Defined in:
- app/helpers/ariadne/form_helper.rb
Overview
:nocov: :nodoc:
Instance Method Summary collapse
- #ariadne_fields_for(record_name, record_object = nil, options = {}, &block) ⇒ Object
- #ariadne_form_with(**kwargs, &block) ⇒ Object
- #inline_form(*args, &block) ⇒ Object
- #render_inline_form(*args, &block) ⇒ Object
Instance Method Details
#ariadne_fields_for(record_name, record_object = nil, options = {}, &block) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'app/helpers/ariadne/form_helper.rb', line 11 def ariadne_fields_for(record_name, record_object = nil, = {}, &block) fields_for( record_name, record_object, .merge( skip_default_ids: false, builder: Ariadne::Forms::Builder, ), &block ) end |
#ariadne_form_with(**kwargs, &block) ⇒ Object
7 8 9 |
# File 'app/helpers/ariadne/form_helper.rb', line 7 def ariadne_form_with(**kwargs, &block) form_with(**kwargs, skip_default_ids: false, builder: Ariadne::Forms::Builder, &block) end |
#inline_form(*args, &block) ⇒ Object
23 24 25 |
# File 'app/helpers/ariadne/form_helper.rb', line 23 def inline_form(*args, &block) Ariadne::Form.inline_form(*args, &block) end |
#render_inline_form(*args, &block) ⇒ Object
27 28 29 |
# File 'app/helpers/ariadne/form_helper.rb', line 27 def render_inline_form(*args, &block) render(inline_form(*args, &block)) end |