Module: ActionAdmin::FormHelper
- Defined in:
- app/helpers/action_admin/form_helper.rb
Instance Method Summary collapse
-
#admin_fields_for(*args, &block) ⇒ Object
Admin simple form fields.
-
#admin_form_for(object, *args, &block) ⇒ Object
Admin simple form.
-
#admin_minimal_fields_for(*args, &block) ⇒ Object
Admin simple form fields with placeholders.
-
#admin_minimal_form_for(object, *args, &block) ⇒ Object
Admin simple form with placeholders.
Instance Method Details
#admin_fields_for(*args, &block) ⇒ Object
Admin simple form fields
13 14 15 16 17 18 19 |
# File 'app/helpers/action_admin/form_helper.rb', line 13 def admin_fields_for(*args, &block) = args. builder = { builder: ActionAdmin::Form::Builder } = .merge(builder) unless [:builder] simple_form_for(*(args << ), &block) end |
#admin_form_for(object, *args, &block) ⇒ Object
Admin simple form
4 5 6 7 8 9 10 |
# File 'app/helpers/action_admin/form_helper.rb', line 4 def admin_form_for(object, *args, &block) = args. builder = { builder: ActionAdmin::Form::Builder } = .merge(builder) unless [:builder] simple_form_for(object, *(args << ), &block) end |
#admin_minimal_fields_for(*args, &block) ⇒ Object
Admin simple form fields with placeholders
30 31 32 33 34 35 |
# File 'app/helpers/action_admin/form_helper.rb', line 30 def admin_minimal_fields_for(*args, &block) = args. = .merge(builder: ActionAdmin::Form::MinimalBuilder) admin_fields_for(*(args << ), &block) end |
#admin_minimal_form_for(object, *args, &block) ⇒ Object
Admin simple form with placeholders
22 23 24 25 26 27 |
# File 'app/helpers/action_admin/form_helper.rb', line 22 def admin_minimal_form_for(object, *args, &block) = args. = .merge(builder: ActionAdmin::Form::MinimalBuilder) admin_form_for(object, *(args << ), &block) end |