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