Class: FluentdFormBuilder
- Inherits:
-
ActionView::Helpers::FormBuilder
- Object
- ActionView::Helpers::FormBuilder
- FluentdFormBuilder
- Includes:
- ActionView::Context, ActionView::Helpers::TagHelper
- Defined in:
- app/form_builders/fluentd_form_builder.rb
Instance Method Summary collapse
Instance Method Details
#field(key, options = {}) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'app/form_builders/fluentd_form_builder.rb', line 5 def field(key, = {}) plugin_class = object.class content_tag(:div, class: "form-group") do if plugin_class._sections[key] render_section(key, ) else resolve_field(key, ) end end end |