Class: Super::FormBuilder
- Inherits:
-
ActionView::Helpers::FormBuilder
- Object
- ActionView::Helpers::FormBuilder
- Super::FormBuilder
- Defined in:
- lib/super/form_builder.rb,
lib/super/form_builder/base_methods.rb,
lib/super/form_builder/option_methods.rb,
lib/super/form_builder/flatpickr_methods.rb,
lib/super/form_builder/action_text_methods.rb
Overview
Example
super_form_for([:admin, @member]) do |f|
# the long way
f.super.label :name
f.super.text_field :name
f.super.inline_errors :name
# the short way (slightly different from the long way, for alignment)
f.super.text_field! :position
end
Refer to the Rails docs: https://api.rubyonrails.org/classes/ActionView/Helpers/FormBuilder.html
Defined Under Namespace
Classes: Wrappers
Constant Summary collapse
- FIELD_ERROR_PROC =
proc { |html_tag, instance| html_tag }
- FORM_BUILDER_DEFAULTS =
{ builder: self }.freeze