class Arbre::Rails::Forms::FormBuilderProxy
def label(*args)
override it here instead of letting method_missing
Since label and select are Arbre Elements already, we must
def label(*args) proxy_call_to_form :label, *args end
def method_missing(method, *args, &block)
def method_missing(method, *args, &block) er && form_builder.respond_to?(method) to_form(method, *args, &block)
def proxy_call_to_form(method, *args, &block)
def proxy_call_to_form(method, *args, &block) text_node form_builder.send(method, *args, &block) end
def respond_to_missing?(method, include_all)
def respond_to_missing?(method, include_all) if form_builder && form_builder.respond_to?(method, include_all) true else super end end
def select(*args)
def select(*args) proxy_call_to_form :select, *args end