Class: Arbre::Rails::Forms::FieldsForProxy

Inherits:
FormBuilderProxy show all
Defined in:
lib/arbre/rails/forms.rb

Instance Attribute Summary

Attributes inherited from FormBuilderProxy

#form_builder

Instance Method Summary collapse

Methods inherited from FormBuilderProxy

#label, #respond_to_missing?, #select

Methods inherited from Component

#initialize, #tag_name

Constructor Details

This class inherits a constructor from Arbre::Component

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Arbre::Rails::Forms::FormBuilderProxy

Instance Method Details

#build(form_builder, *args, &block) ⇒ Object


77
78
79
80
81
82
83
# File 'lib/arbre/rails/forms.rb', line 77

def build(form_builder, *args, &block)
  form_builder.fields_for(*args) do |f|
    @form_builder = f
  end

  super(&block)
end

#to_sObject


85
86
87
# File 'lib/arbre/rails/forms.rb', line 85

def to_s
  children.to_s
end