class Arbre::Rails::Forms::FormBuilderProxy
Attributes
form_builder[R]
Public Instance Methods
label(*args)
click to toggle source
Since label and select are Arbre
Elements already, we must override it here instead of letting method_missing
deal with it
# File lib/arbre/rails/forms.rb, line 11 def label(*args) proxy_call_to_form :label, *args end
respond_to_missing?(method, include_all)
click to toggle source
Calls superclass method
# File lib/arbre/rails/forms.rb, line 19 def respond_to_missing?(method, include_all) if form_builder && form_builder.respond_to?(method, include_all) true else super end end
select(*args)
click to toggle source
# File lib/arbre/rails/forms.rb, line 15 def select(*args) proxy_call_to_form :select, *args end
Private Instance Methods
method_missing(method, *args, &block)
click to toggle source
Calls superclass method
# File lib/arbre/rails/forms.rb, line 33 def method_missing(method, *args, &block) if form_builder && form_builder.respond_to?(method) proxy_call_to_form(method, *args, &block) else super end end
proxy_call_to_form(method, *args, &block)
click to toggle source
# File lib/arbre/rails/forms.rb, line 29 def proxy_call_to_form(method, *args, &block) text_node form_builder.send(method, *args, &block) end