Class: Super::Form::Builder
- Inherits:
-
ActionView::Helpers::FormBuilder
- Object
- ActionView::Helpers::FormBuilder
- Super::Form::Builder
- Defined in:
- lib/super/form/builder.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